jhachtel / AMIS3610-Group-Project

0 stars 0 forks source link

Identity Lab Incorporation #18

Closed jhachtel closed 5 years ago

jhachtel commented 5 years ago

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.

jhachtel commented 5 years ago

Continue to use the identity branch for this issue.

Demerti commented 5 years ago

My fork is up to date with the current version of the main branch with my models and data file added.

jhachtel commented 5 years ago

using the identity-fix branch now.

jhachtel commented 5 years ago

I can post new users but cannot login. Not sure what I'm doing wrong - if anything.

jhachtel commented 5 years ago

@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

jhachtel commented 5 years ago

@AlexTetzloff - Try the above fix and see if it fixes your lab code. mine is working fine now.

jhachtel commented 5 years ago

Lab 10 done for the project. I'll do lab 7 for it tomorrow.

I'm closing this issue now and merging the branch.