authentication - How to specify redirect uri using WebAuthenticationCoreManager? -
i using webauthenticationcoremanager
authenticate uwp app:
webtokenrequest webtokenrequest = new webtokenrequest(provider, authority, clientid); webtokenrequest.properties.add("resource", resourceid); webtokenrequestresult wtrr = await webauthenticationcoremanager.requesttokenasync(webtokenrequest);
i given clientid , redirecturi use, don't know how set redirecturi request.
this thread says there no way, short of using webauthenticationbroker
, i'm hoping has changed.
so, there way specify redirect uri?
so, there way specify redirect uri?
you don't need set redirect uri web account manager relative apis.
it seems redirect uri built in, , cannot set it. purpose using these apis requesting user's permission use microsoft account , obtain access token. can access token without setting redirect uri. confirm having app manifest being modified use app identity of registered microsoft store/registered aad app. more details please reference webaccountmanagement official sample , official document.
if met error "the reply address .. not march reply address configured application ... " should same the above thread referenced, roland oldengarm said, may copy ms-appx-web://microsoft.aad.brokerplugin/packageid
azure ad try resolve issue.
Comments
Post a Comment