Azure-Samples / active-directory-b2c-ios-swift-native-msal

An iOS sample in Swift that authenticates Azure AD B2C users and calls an API using OAuth 2.0
https://aka.ms/aadb2c
MIT License
45 stars 22 forks source link

Is it posible to add parameter to authorize api? #32

Closed nguyenhuutinh closed 4 years ago

nguyenhuutinh commented 4 years ago

Hello, I want to add custom parameter to custom policies. is it posible to add it? example: ip_override=103.247.92.0

https://abc.b2clogin.com/abc.onmicrosoft.com/oauth2/v2.0/authorize?p=B2C_1A_IP_Demomfa_signup_signin&client_id=abc&nonce=defaultNonce&redirect_uri=https%3A%2F%2Fjwt.ms&scope=openid&response_type=id_token&prompt=login&ip_override=103.247.92.0

thanks

oldalton commented 4 years ago

Thanks for the question. You can pass additional parameters as extra query parameters using this property: https://azuread.github.io/microsoft-authentication-library-for-objc/Classes/MSALInteractiveTokenParameters.html#/c:objc(cs)MSALInteractiveTokenParameters(py)extraQueryParameters. Hope it helps and sorry for a late reply. We generally recommend to open issues in the main MSAL repository to get more immediate help.

oldalton commented 4 years ago

Closing this issue as stale. Please reopen if needed.