manfredsteyer / angular2-oauth2

63 stars 49 forks source link

New Angular2 configuration #18

Closed german-bortoli closed 7 years ago

german-bortoli commented 8 years ago

On readme says that we need to configure the loginUrl, redirectUri, etc (https://github.com/manfredsteyer/angular2-oauth2#top-level-component) but on new angular2 structure should be a bit different.

We should configure it on src/app/app.module.ts something like Angular2Ouath2.forRoot(loginUrl: ...)

manfredsteyer commented 7 years ago

Thx for this info. I will consider it for the next version of the lib. I think, it would also be a good idea to create the possibility to change the configuration at runtime. could be interesting if the app supports several login servers.