Skip to content

feat : Add support for /e/discovery endpoint - #1070

Open
pmathew92 wants to merge 12 commits into
v5_developmentfrom
SDK-11058
Open

pmathew92 wants to merge 12 commits into
v5_developmentfrom
SDK-11058

Conversation

@pmathew92

Copy link
Copy Markdown
Member

Changes

This PR adds the support for the /e/discovery endpoint as part of the embedded authorize initiative. This API returns all the grant types enabled for a client. It takes an optional connection parameter to narrow down the grant types for a particular connection

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. Since this library has unit testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage

  • This change has been tested on the latest version of the platform/language or why not

Checklist

@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 96496576-4600-47d4-921c-799c9b4c36e7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pmathew92
pmathew92 changed the base branch from main to v5_development September 16, 2026 07:02
@pmathew92
pmathew92 marked this pull request as ready for review September 16, 2026 07:03
@pmathew92
pmathew92 requested a review from a team as a code owner September 16, 2026 07:03
@pmathew92
pmathew92 added this pull request to stack #1076 September 21, 2026 15:32
*/
internal data class DiscoveryResponse(
@SerializedName("alternatives")
val alternatives: List<Alternative>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alternatives is non-null but Gson can leave it null. Guarded by .orEmpty(), but List? is more honest.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would Gson would it leave it as null ? alternatives is a mandatory list as per the schema definition

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

Comment thread sample-embedded/build.gradle Outdated
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:compose-compiler-gradle-plugin:2.0.21"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoded 2.0.21. Use $kotlin_version so it can't drift on the next Kotlin bump.Its up to you as its sample just flagging

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a hard requirement but will update it to keep consistency

@utkrishtsahu

Copy link
Copy Markdown
Contributor

New public entry point EmbeddedAuthClient added with no README mention.

@@ -0,0 +1,167 @@
package com.auth0.android.embedded

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add one await() coroutine test — only .execute() covered.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a test case for the same

@utkrishtsahu

Copy link
Copy Markdown
Contributor

sample-embedded module — is this meant to ship in the repo (and be built by CI going forward), or is it a temporary demo to be removed before merge?

@pmathew92

Copy link
Copy Markdown
Member Author

sample-embedded module — is this meant to ship in the repo (and be built by CI going forward), or is it a temporary demo to be removed before merge?

This will be added and pushed to GH but won't be build in CI . Neither is our existing sample app is being build in CI

@pmathew92

Copy link
Copy Markdown
Member Author

New public entry point EmbeddedAuthClient added with no README mention.
Will add a section to Readme once we make the beta release for Embedded

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants