-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DT cookie and fix IDX for org auth servers #202
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but I had a minor question
@@ -41,10 +41,11 @@ import com.okta.idx.kotlin.dto.v1.Response as V1Response | |||
/** | |||
* The InteractionCodeFlow class is used to define and initiate an authentication workflow utilizing the Okta Identity Engine. | |||
*/ | |||
class InteractionCodeFlow constructor(private val client: OAuth2Client) { | |||
class InteractionCodeFlow(private val client: OAuth2Client) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious, is there a reason why the OAuth2Client is private? My Kotlin may be a bit rusty, but this will make it inaccessible to see by the developer, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's correct. It's more of a legacy than an intentional decision to keep this private. I didn't think much about making this public because the developer can provide their own client to the constructor and have it available to them anyways. And it's also accessible to the developer through OAuth2Client.default if they construct the flow using the empty constructor. I can make this public
8cf4e97
to
329c46c
Compare
This PR adds DT cookie to IDX SDK. This is done mostly by copying the implementation from okta-mobile-kotlin code during the time of this PR: okta/okta-mobile-kotlin@cd65552
I have also added additional tests not present in okta-mobile-kotlin originally.
This PR also adds a small fix for using IDX using org auth servers, when the issuer url doesn't contain /oauth2 in the path