Debugging
This commit is contained in:
parent
25fc20ba6f
commit
3a6e9db939
@ -107,6 +107,8 @@ export default class IdNotService extends BaseService {
|
||||
}
|
||||
|
||||
public async getIdNotToken(code: string) {
|
||||
console.log(code);
|
||||
|
||||
const query = new URLSearchParams({
|
||||
client_id: this.variables.IDNOT_CLIENT_ID,
|
||||
client_secret: this.variables.IDNOT_CLIENT_SECRET,
|
||||
@ -114,9 +116,17 @@ export default class IdNotService extends BaseService {
|
||||
code: code,
|
||||
grant_type: "authorization_code",
|
||||
});
|
||||
console.log(query);
|
||||
|
||||
const token = await fetch(this.variables.IDNOT_BASE_URL + this.variables.IDNOT_CONNEXION_URL + "?" + query, { method: "POST" });
|
||||
console.log(token);
|
||||
|
||||
const decodedToken = (await token.json()) as IIdNotToken;
|
||||
console.log(decodedToken);
|
||||
|
||||
const decodedIdToken = jwt.decode(decodedToken.id_token) as IdNotJwtPayload;
|
||||
console.log(decodedIdToken);
|
||||
|
||||
return decodedIdToken;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user