oauth-2.0

How to implement Authorization Code Grant with PKCE in Angular6+ applications

北城以北 提交于 2020-12-12 15:35:36
问题 I need some input in implementing MSAL library in Angular6+ applications for integrating with AZURE AD. As i read through the microsoft docs, i came across two flows 'implicit grant flow' and 'auth code flow'. It is been recommended by microsoft team themselves that 'auth code flow' must be implemented as its secure as compared to 'implicit grant flow'. Im working on a Angular6+ application, and I have to integrate it with AZURE AD. When i checked the MSAL libraries for angular i could only

What is the Purpose of “postmessage” in a Redirect URI?

家住魔仙堡 提交于 2020-12-12 10:49:07
问题 To my knowledge, in Google's authentication code flow it is required for the redirect_uri to be 'postmessage' instead of a URI. Could anyone explain what this value is specifically doing? My best explanation is that it tells the browser to return to where the post came from, but I have no documentation to back this assumption up. There seems to be zero documentation on this topic, yet it is the given solution in most scenarios. Any clarification would be nice. 回答1: There's a bit of (old)

Android Google login not working inside WebView

天涯浪子 提交于 2020-12-10 08:46:19
问题 I am new to android development. Trying to integrate FB and Google+ login in Android web view. FB login is working fine. But Google login is not allowing to login. I referred a few links but unable to succeed. Problem is after providing user name and password in Gmail my web site is not sign in A webview overlay over another webview Google sign in not working android webview app Google sign in not working android webview app private class MyCustomWebViewClient extends WebViewClient {

CORs Error: Google Oauth from React to Express (PassportJs validation)

末鹿安然 提交于 2020-12-07 08:14:28
问题 I'm trying to set up a React/Redux - NodeJs Express stack with Google OAuth authentication. My issue is a CORs error kicking back in the console. I've found some Stack Overflow questions that I feel were exactly my issue, but the solutions aren't producing any results. Specifically these two: CORS with google oauth and CORS/CORB issue with React/Node/Express and google OAuth. So I've tried a variety of fixes that all seem to lead me back to the same error. Here's the most straight forward of

SAPUI5/OpenUI5 Routing without “#” possible?

蹲街弑〆低调 提交于 2020-12-05 19:55:54
问题 I have an application with two routes ("" and "page") with a simple target attached to each (not the same). When I now navigate from the root route "" to "page", the URL in the URL bar of the browser changes to <baseurl>#/page . Also when simply entering <baseurl>#/page in the URL bar of the browser, the proper view is displayed, that was configured via route and target. Is it possible to configure UI5 - presumably the router - to omit the # in the URL, such that navigation changes the URL to

Azure AD: Roles claims missing in access token

Deadly 提交于 2020-12-05 10:25:09
问题 For my application, I want users to be able to sign in with their Azure Account (Single Sign On). I also need an access token to access the secured backend. So I can get both, the id_token and the access_token , with a request to this url: https://login.microsoftonline.com/MY_TENANT_ID/oauth2/authorize?response_type=id_token+token&client_id=MY_CLIENT_ID&state=SOME_STATE&redirect_uri=MY_REDIRECT_URI&scope=openid profile&resource=MY_CLIENT_ID&nonce=SOME_NONCE This basically works, but I also

SMS based OTP in keycloak is possible?

北城以北 提交于 2020-12-05 07:11:23
问题 I am exploring keycloak and I want to build an application that was based on user mobile number, SMS OTP should go to the user for authentication. I am not finding any where. 回答1: It is possible through extending Authentication mechanism, check Authentication SPI documentation Take a look at existing solution: https://github.com/nickpack/keycloak-sms-authenticator-sns Even if it doesn't suite your needs you can take the source code as a reference point. 来源: https://stackoverflow.com/questions

SMS based OTP in keycloak is possible?

非 Y 不嫁゛ 提交于 2020-12-05 07:10:32
问题 I am exploring keycloak and I want to build an application that was based on user mobile number, SMS OTP should go to the user for authentication. I am not finding any where. 回答1: It is possible through extending Authentication mechanism, check Authentication SPI documentation Take a look at existing solution: https://github.com/nickpack/keycloak-sms-authenticator-sns Even if it doesn't suite your needs you can take the source code as a reference point. 来源: https://stackoverflow.com/questions

How to specify refresh tokens lifespan in Keycloak

别等时光非礼了梦想. 提交于 2020-12-01 02:31:47
问题 Keycloak refresh token lifetime is 1800 seconds: "refresh_expires_in": 1800 How to specify different default expiry time? In Keycloak admin ui, only access token lifespan can be specified: 回答1: The refresh token lifetime is controlled by the SSO Session Idle Setting. 30 minutes = 30 * 60 = 1800 seconds (the refresh_expires_in value) 来源: https://stackoverflow.com/questions/52040265/how-to-specify-refresh-tokens-lifespan-in-keycloak

Multi Auth with Laravel 5.4 and Passport

余生长醉 提交于 2020-11-26 08:49:27
问题 I am trying to setup multi auth with Laravel Passport, but it doesn't seem to support it. I am using the Password Grant to issue tokens which requires me to pass username/password of the user wanting access tokens. I have 3 auth guards/providers setup, 4 in total. Users, Vendors, Admins and API 2 of the Auths need passport access, so each user needs to be able to issue tokens. But Passport automatically takes the API auth provider, but I want this to change based on which user is logging in..