Git Product home page Git Product logo

Comments (13)

manfredsteyer avatar manfredsteyer commented on June 12, 2024 2

Hi @maxisam,

Just wanted to say, that I did not forget about this. I hope I find the time in the course of the next days to reproduce this and to hunt it down.

Wishes,
manfred

from angular-oauth2-oidc.

kamil-zielinski avatar kamil-zielinski commented on June 12, 2024 1

Thank you @leonardochaia. Now everything is clear. I was looking for information how to trigger redirect on the same page as configuring implicit flow but it is somewhere else.

from angular-oauth2-oidc.

CodyDunlap avatar CodyDunlap commented on June 12, 2024

I would like to add that I'm new to OAuth and OIDC, so I could be doing something wrong. If that is the case, don't hesitate to tell me. But everything I have read and seen makes me believe I'm on the right track at least.

from angular-oauth2-oidc.

manfredsteyer avatar manfredsteyer commented on June 12, 2024

Can you reproduce this issue with a minimal sample an check it into github?

from angular-oauth2-oidc.

manfredsteyer avatar manfredsteyer commented on June 12, 2024

Any luck with this?

from angular-oauth2-oidc.

maxisam avatar maxisam commented on June 12, 2024

Actually, I have the same question as well. From here

public loadDiscoveryDocument(fullUrl: string = null): Promise<object> {

We can see if the server doesn't reveal discovery document, the whole thing doesn't work. Is it possible to make it as configuration?

from angular-oauth2-oidc.

s-f-a-g avatar s-f-a-g commented on June 12, 2024

We are actually facing the same problem

from angular-oauth2-oidc.

manfredsteyer avatar manfredsteyer commented on June 12, 2024

Hi,

I've added this to the sample application here (will be checked in in some minutes).

To use it, make sure that AppComponent's constructor calls the method configureWithoutDiscovery.

If you face further issues feel free to reach out and to reopen this issue.

Best wishes,
Manfred

export class AppComponent {

    constructor(
        private router: Router,
        private oauthService: OAuthService) {

      this.configureWithoutDiscovery();
      // this.configureWithNewConfigApi();
      // this.configureAuth();
      // this.configurePasswordFlow();
      
    }


    private configureWithoutDiscovery() {
      this.oauthService.configure(noDiscoveryAuthConfig);
      this.oauthService.tokenValidationHandler = new JwksValidationHandler();
      this.oauthService.tryLogin();
    }

[...]
}

from angular-oauth2-oidc.

kamil-zielinski avatar kamil-zielinski commented on June 12, 2024

Hi @manfredsteyer, you forgot to link the sample application.
Is it possible to send user the the login page without document discovery?

from angular-oauth2-oidc.

kamil-zielinski avatar kamil-zielinski commented on June 12, 2024

It seems that loginUrl needs to be set in the config and then this.oauthService.initImplicitFlow(); can be called to redirect user.

Would it be good solution?

from angular-oauth2-oidc.

leonardochaia avatar leonardochaia commented on June 12, 2024

This has been documented here.

from angular-oauth2-oidc.

kamil-zielinski avatar kamil-zielinski commented on June 12, 2024

@leonardochaia As it says in the comment 'It doesn't send the user the the login page'. I was looking for something that actually can send user to the login page.

from angular-oauth2-oidc.

leonardochaia avatar leonardochaia commented on June 12, 2024

@kamil-zielinski the link I've sent is to configure the OAuthService to work without using the Discovery Document.
Once you have it configured, I believe most of other articles for implicit flow should apply.

So yes, you need to call initImplicitFlow() to trigger the redirect to the auth service's login page.
In the redirectUri that you have provided to the auth service, you must configure the OAuthService and call tryLogin to obtain and validate the tokens from the URL.

from angular-oauth2-oidc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.