regarding tapkey token exchange flow: when exchanging a jwt token for an access token through https://login.tapkey.com/connect/token api, I get an access token response, even the user does not exist.
My jwt token contains of the following: Header:
{
"alg": "RS256"
}
Payload:
{
"algorithm": "RS256",
"aud": "local",
"iat": 1633339589,
"exp": 1633343189,
"iss": "tapkey",
"sub": "NOT_EXISTING_USER_ID"
}
this raises the following questions:
- when I create an IdentityProviderUser I get in return an
id
and anipUserId
. Should the jwt-token's"sub"
be the returnedid
or should"sub"
be the returnedipUserId
? In both cases I am able to retrieve an access token, because regardless what I define in"sub"
an access token is exchanged. - what happens when mobile tries to login with a not existing user's access token?