question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Developer Portal to set up Sign Out with OAUTH

See original GitHub issue

Insight: We enabled developer portal user sign in with OAUTH. Azure active directory is our IDP & this is updated in identities in APIM. Developer portal is registered as client in AAD.

We are using Sign in with OAUTH function. The sign in works as expected with OAUTH.

`` Issue is with sign out process. There is no option to Sign out with OAUTH currently provisioned.

Hence we are using standard Signout function.

This is only enabling our users to sign out from their Developer portal session. This does not allow AAD session to be logged out. SO when user signs back in, it does not redirect them to go through login process, it just signs right back in. This is a security vulnerability & does not comply with our security requirements for 2FA.

We raised case with Microsoft. After reviewing our request, Microsoft Product Group recommended to request as open issue on GITHUB.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:27 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
LeHainecommented, Apr 6, 2022

We are seeing a similar issue where we can sign in just fine but using the /#signout doesn’t actually seem to make a request to the B2C app’s Front-channel logout URL in order to clear the session data.

Signing out does bring us to https://login.microsoftonline.com/common/oauth2/v2.0/logoutsession which terminates the developer portal session but never seems to run the actual B2C logout flow / make a request to that front-channel logout URL.

1reaction
wkarratooncommented, May 10, 2021

I have updated this comment since originally posting to further emphasis that this is a Developer Portal bug:

We have in fact verified the B2C logout URI that we link to from our custom sign out button, does do the job of expiring the B2C (MSAL 2 library) tokens and logout from the B2C tenant. These MSAL tokens are not however cleared from the browser cache…but they are not the issue (expired). The issue is the Developer Portal SAS token is not cleared and not clearable manually in the browser either (it returns the next refresh after deletion). However /#signout does cleanout SAS.

This behavior makes a very strong case for a signout-oauth button to make this all more full proof for the Developer Portal administrative designer (see also https://github.com/Azure/api-management-developer-portal/issues/1301)

Is there any timeline yet?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using OAuth 2.0 to Access Google APIs | Authorization
1. Obtain OAuth 2.0 credentials from the Google API Console. 2. Obtain an access token from the Google Authorization Server. 3.
Read more >
How to Logout of an Application Where I Used OAuth2 To ...
When you logout of your app, you're logging out of your app: Here's where developers new to OAuth sometimes get a little confused....
Read more >
Sign users out - Okta Developer
Signing out of Okta requires the app to open a browser and navigate to the end session endpoint. Okta ends the user's session...
Read more >
Authentication API Explorer - Auth0
It offers endpoints so your users can log in, sign up, log out, access APIs, and more. The API supports various identity protocols,...
Read more >
Logout endpoint - Amazon Cognito - AWS Documentation
You can also use the logout_uri parameter to redirect your user to the sign-in page for another app client. Set the sign-in page...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found