use rs256
This commit is contained in:
		
							
								
								
									
										2
									
								
								auth.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								auth.py
									
									
									
									
									
								
							| @@ -103,7 +103,7 @@ def generateToken(**args): | |||||||
|             # print("DEBUG: generateToken: add claim {} -> {}".format(claim[0], claim[1])) |             # print("DEBUG: generateToken: add claim {} -> {}".format(claim[0], claim[1])) | ||||||
|             payload[claim[0]] = claim[1] |             payload[claim[0]] = claim[1] | ||||||
|  |  | ||||||
|         return jwt.encode(payload, JWT_SECRET) |         return jwt.encode(payload, JWT_SECRET, algorithm='RS256') | ||||||
|     except NoUserException: |     except NoUserException: | ||||||
|         print("ERROR: generateToken: no user found, login or application wrong") |         print("ERROR: generateToken: no user found, login or application wrong") | ||||||
|         raise werkzeug.exceptions.Unauthorized() |         raise werkzeug.exceptions.Unauthorized() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user