Git Product home page Git Product logo

angular-oidc's Introduction

AngularProject

Authorization flow with OpenId connect/Aouth2

angular-oidc's People

Contributors

8tesla8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

angular-oidc's Issues

CORS and 404 error

Hello
I am trying to use the code , But I am getting CORS error as well as 404

Upon receive callback, new app is loaded in iframe

It seems if using Angular routing callback (eg silent renew) to component (SilentCallbackComponent) it will load a new app in iframe
The _authService will be a new instance and logic will not be able to apply to the original/main app.

Do you have same issue?

The only way I can get around this is handle callback using html instead of angular component.
But it mean if I want to do any logic after renew is complete, I can no long use automaticSilentRenew feature, and I have to subscribe to addAccessTokenExpiring event and do the signinSilent() myself

ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(AppModule)[InjectionToken IUrlConstantService injection token

core.js:6210 ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(AppModule)[InjectionToken IUrlConstantService injection token -> InjectionToken IUrlConstantService injection token -> InjectionToken IUrlConstantService injection token]:
NullInjectorError: No provider for InjectionToken IUrlConstantService injection token!
NullInjectorError: R3InjectorError(AppModule)[InjectionToken IUrlConstantService injection token -> InjectionToken IUrlConstantService injection token -> InjectionToken IUrlConstantService injection token]:
NullInjectorError: No provider for InjectionToken IUrlConstantService injection token!
at NullInjector.get (vendor.js:29508:27)
at R3Injector.get (vendor.js:29675:33)
at R3Injector.get (vendor.js:29675:33)
at R3Injector.get (vendor.js:29675:33)
at NgModuleRef$1.get (vendor.js:43705:33)
at Object.get (vendor.js:43419:35)
at lookupTokenUsingModuleInjector (vendor.js:21795:39)
at getOrCreateInjectable (vendor.js:21907:12)
at Module.ɵɵdirectiveInject (vendor.js:33099:12)
at NodeInjectorFactory.LogoutCallbackComponent_Factory [as factory] (main.js:407:183)
at resolvePromise (polyfills.js:10606:31)
at resolvePromise (polyfills.js:10560:17)
at polyfills.js:10672:17
at ZoneDelegate.invokeTask (polyfills.js:9799:31)
at Object.onInvokeTask (vendor.js:46946:33)
at ZoneDelegate.invokeTask (polyfills.js:9798:60)
at Zone.runTask (polyfills.js:9571:47)
at drainMicroTaskQueue (polyfills.js:9975:35)
at ZoneTask.invokeTask [as invoke] (polyfills.js:9884:

image

Can anyone help me how to fix this?

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.