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.

OAuth2 Workflow - oauth2-redirect.html not found

See original GitHub issue

During Implementing an OAuth2 Workflow for the api documentation i’m getting the issue that the redirect page can’t be found. E.g. for local running function http://localhost:7071/oauth2-redirect.html can’t be found (404) after successful authentication.

My OpenApiOAuthSecurityFlows looks like this:

class TestOAuth2 : OpenApiOAuthSecurityFlows
    {
        public TestOAuth2 ()
        {
            this.Implicit = new OpenApiOAuthFlow()
            {
                AuthorizationUrl = new Uri("https://xxxx.b2clogin.com/xxxx.onmicrosoft.com/oauth2/v2.0/authorize?p=workflow_id"),
                Scopes = { { "https://xxxx.onmicrosoft.com/xxxx-xxx/API.User", "API Access" } },
                TokenUrl = new Uri("https://xxxx.b2clogin.com/xxxx.onmicrosoft.com/oauth2/v2.0/token?p=workflow_id")
                
            };
        }
    }

Am i missing some configuration for the redirect page?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
Derich367commented, Mar 2, 2021

@justinyoo Thanks a lot! I tested it and now OAuth is working as expected!

2reactions
justinyoocommented, Mar 2, 2021

@Derich367 @svrooij v0.5.1-preview has been released including this hotfix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

oauth2-redirect.html missing · Issue #1969 · swagger-api ...
This fails with a 404 because /oauth2-redirect.html is missing. ... /oauth2-redirect.html exists and the authorization code flow succeeds.
Read more >
Micronaut Swagger redirect not working with OAuth 2 ...
I am using swagger open API 3 in the Micronaut application with Authorization + PKCE flow as below. enter image description here
Read more >
The connection test of the OAuth 2.0 integration fails with ...
In Jira, go to ⚙ > System > OAuth 2.0, and change the 2 fields Authorization endpoint and Token endpoint in the OAuth...
Read more >
Using OAuth 2.0 for Web Server Applications | Authorization
This OAuth 2.0 flow is specifically for user authorization. It is designed for applications that can store confidential information and maintain state.
Read more >
The Authorization Response - OAuth 2.0 Simplified
From the authorization server's point of view, at the point it creates the access token and sends the HTTP redirect, it has no...
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