As we want extend/ make some changes in those module we added it.
We are using Enterprise License.
I am using Version 3.1.1
NO, but We tried using the above way and many different ways also, One thing we want to know that we are retireving access token using IdentityServer4 like this angular using OAuthService
return from(this.oAuthService.loadDiscoveryDocument()).pipe(
switchMap((data) =>
from(
this.oAuthService.fetchTokenUsingPasswordFlow(
username,
password,
new HttpHeaders({ ...(tenant && tenant.id && { __tenant: tenant.id }) }),
).then((token)=>{
}
),
),
),
switchMap((data) => this.store.dispatch(new GetAppConfiguration())),
tap((data) => {
const redirectUrl =
snq(() => window.history.state.redirectUrl) || (this.options || {}).redirectUrl || '/';
this.store.dispatch(new Navigate([redirectUrl]));
}),
take(1),
);
Here we get an access token and get access to all backend apis. Can we know how we will be get generate that access token if login using AAD through Oauth Implicit flow? because we are able to login using AAD in angular, generating accesstoken and claims as well but further process is not clear to us.
const tenant = this.store.selectSnapshot(SessionState.getTenant);
this.oAuthService.tokenValidationHandler = new JwksValidationHandler();
this.oAuthService.configure(
this.store.selectSnapshot(ConfigState.getOne('environment')).aadConfig,
);
this.oAuthService.initImplicitFlow('providername=AzureOpenId');
After successful AAD login its redirecting to home controller where we can get accesstoken and claims.
this.oAuthService.tryLogin().then(() => {
let claims = this.oAuthService.getIdentityClaims();
}
But as we know its not authentiing the user from database , its just a successfull microsoft login but not abp login as user is not part of the system.
Please help us in next process!