Closed jhachtel closed 5 years ago
Continue to use the identity branch for this issue.
My fork is up to date with the current version of the main branch with my models and data file added.
using the identity-fix branch now.
I can post new users but cannot login. Not sure what I'm doing wrong - if anything.
@Demerti @AlexTetzloff - FYI @skyarkitekten
The solution was that in appsettings.json...
"JWTConfiguration": { "Issuer": "Issuer", "Audience": "audience", "Key": "lrMAsSjjkKiRxGdgR8p5kZJj0AFgdWYa3OT2snIXnN5+/p7j13PSkseUcrAFyokc", "TokenExpirationDays": 7 }
The Key has a minimum size requirement. I copied and pasted a line of text out of a very large security key. Now, I can log in.
I found the answer here: https://stackoverflow.com/questions/50590432/jwt-securitytokeninvalidsignatureexception-using-rs256/50630162
@AlexTetzloff - Try the above fix and see if it fixes your lab code. mine is working fine now.
Lab 10 done for the project. I'll do lab 7 for it tomorrow.
I'm closing this issue now and merging the branch.
The files are current with the labs up to item 4 in creating the user API of the identity lab.
There is a new identity lab document. The old and new documents need to be reviewed for compatibility and to determine the best path forward. Then, the lab will need to be incorporated into the project.