Comments (13)
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.
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.
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.
Can you reproduce this issue with a minimal sample an check it into github?
from angular-oauth2-oidc.
Any luck with this?
from angular-oauth2-oidc.
Actually, I have the same question as well. From here
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.
We are actually facing the same problem
from angular-oauth2-oidc.
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.
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.
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.
This has been documented here.
from angular-oauth2-oidc.
@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.
@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)
- Project Security Policy is missing
- Handle multiple authentication in one application HOT 1
- Access_token-less use-case breaks because storage values are stored as strings but not actually treated as such HOT 1
- refreshToken Promise<TokenResponse> never rejected
- clockSkewInSec and loadDiscoveryDocumentAndLogin HOT 1
- Unauthorized (access_denied) User Redirected back to App, but unhandled by the OIDC plugin
- The most recent versions of angular-oauth2-oidc fail the jump from Ng 15 to Ng 16. HOT 2
- feat: upgrade project to Angular 17 HOT 5
- Silent Authorization Code Flow instead of Refresh HOT 2
- Cors Error in Azure AD (Microsoft Entra ID) when source is localhost HOT 1
- Code flow in a popup HOT 3
- needs migration steps from angular-oauth2-oidc 13.0.1 to angular-oauth2-oidc 14.0.1 or 15.0.1 HOT 1
- Upgrading angular-oauth2-oidc v13.0.1 to V15.0.1 needs changelog
- Support for Angular 17 is missing in README.md annotation
- prevent showing the wildcard route component while doing authentication. HOT 1
- setupAutomaticSilentRefresh() not working. HOT 1
- Local parsing HTTP request error HOT 5
- Upgrade jsrsasign to v11 HOT 9
- Azure AD B2C implicate flow clientAuthError: Invalid state
- adfs using initLoginFlow() returns auth token but getAccessToken() is null
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-oauth2-oidc.