C
C#2mo ago
hutonahill

How does signInManager return tokens?

I am modifying the standard login endpoint provided by MapIdentityApi<IdentityUser>(). at the bottem of the login endpoint: // The signInManager already produced the needed response in the form of a cookie or bearer token. i assume this means that somehow signinManager returns its tokens to the users. I need the login endpoint to return some other data depending on the roles the user has. I've implemented this logic, but i cant figure out how to return the sign tokens as well as my data. it also looks like that even when my users don't have this role the method is not returning tokens, its just returning an empty success. How does signInManager return tokens to the user and how can i get it to return that data to my method so i can control how its returned to the user?
3 Replies
hutonahill
hutonahill2mo ago
I've dug around in the documentation and code and cant find anything. as far as i can tell a sucessful signin just returns the signinresults bump
MutableString
MutableString2mo ago
i don't know but i would bet on a set-cookie header or something similar
hutonahill
hutonahill2mo ago
darn.
Want results from more Discord servers?
Add your server