mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Add option to disable refresh token invalidation (#6584)
* Add option to disable refresh token invalidation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add integration tests and remove wrong todos Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix typo Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix tests and add documentation Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
		| @@ -304,12 +304,14 @@ var ( | ||||
| 		Enable                     bool | ||||
| 		AccessTokenExpirationTime  int64 | ||||
| 		RefreshTokenExpirationTime int64 | ||||
| 		InvalidateRefreshTokens    bool | ||||
| 		JWTSecretBytes             []byte `ini:"-"` | ||||
| 		JWTSecretBase64            string `ini:"JWT_SECRET"` | ||||
| 	}{ | ||||
| 		Enable:                     true, | ||||
| 		AccessTokenExpirationTime:  3600, | ||||
| 		RefreshTokenExpirationTime: 730, | ||||
| 		InvalidateRefreshTokens:    false, | ||||
| 	} | ||||
|  | ||||
| 	U2F = struct { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user