-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 the state parameter to the oidc authentication request #3466
add the state parameter to the oidc authentication request #3466
Conversation
@@ -445,13 +448,15 @@ class LoginActivity : AppCompatActivity(), SslUntrustedCertDialog.OnSslUntrusted | |||
val customTabsBuilder: CustomTabsIntent.Builder = CustomTabsIntent.Builder() | |||
val customTabsIntent: CustomTabsIntent = customTabsBuilder.build() | |||
|
|||
this.oidcState = UUID.randomUUID().toString().substring(0,15) |
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.
Isn't it better to use base64 encoded bytes from SecureRandom here?
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.
definitely better, created a new function in OauthUtils for that
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.
Just a tiny change and we are ready to go @mortbauer
BTW, rebase this branch with master when you can 👍
owncloudApp/src/main/java/com/owncloud/android/presentation/ui/authentication/LoginActivity.kt
Outdated
Show resolved
Hide resolved
* added state paramter to make resilient against CSRF attacks * see issue owncloud#3465 for more information
690ab7b
to
b826444
Compare
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.
Thanks for the contribution!!
LGTM, @jesmrec ready to QA
Kudos, SonarCloud Quality Gate passed! |
QA checks, regression from current authentication methods
Approved from my side |
Related Issues