-
Notifications
You must be signed in to change notification settings - Fork 278
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
Custom parameters are not getting added to authorize_uri #180
Comments
Indeed, the accessTokenRequest from the code grant flow doesn't use the provided additional parameters while it should. |
Yes, these parameters are added to the token request, not to the authorize URL. If you want to add custom parameters to authorize URI, you can add them when you call This is not accessible when using BTW, what you add to "parameters" ends up in |
Thanks for your response. I'm still having some issues with my authorize flow. Here's the code from my ViewController.swift. Please forgive me if there's something glaringly wrong with my code - I'm very new to iOS and Swift:
Now I only get a blank screen, and I'm getting this feed from my console log: |
You're calling |
Thanks for the shout - didn't realise that I was making a Swift goof. I have another followup issue with this too. Azure AD B2C for native apps uses
into the AppDelegate, and it doesn't seem to do anything at all! |
Yes, that won't work as the App never gets called with this redirect URL. You'll need to use the custom, embedded web view (set embedded to true and safari to false).
|
Perfect! That worked. Got the library working nicely now, thanks for all your help. I decided to use this library for a sample OAuth2.0 app at a hackathon my team are hosting, so this has gone a long way to simplifying the process for the developers who will be joining us. Will be in touch. Cheers! |
Alright great! I'll keep this issue open as the parameter issue when using |
Sounds good. The last nagging issue is that the Web View for the login zooms to the Text View on the screen. Is there a way to keep the Web View from zooming in on the field? |
Yeah I've seen this too, but this must be fixed on the HTML side by the server. |
If anyone has trouble with the original problem, this is what I came up with:
Use it instead of OAuth2CodeGrant like this:
|
It seems that passing custom parameter to token_uri does not work: #354 |
I've followed the instructions to add all the parameters in the authorize URI, but I require a further parameter than what's currently offered. Right now I'm adding this parameter in two ways:
in OAuth2CodeGrant settings:
"parameters": ["p": "B2C_1_BlueBankSUSI"],
in
oauth2.authParameters
oauth2.authParameters = ["p": "B2C_1_BlueBankSUSI"]
The text was updated successfully, but these errors were encountered: