Change build_context_and_subject to take kwargs
This commit is contained in:
		
							parent
							
								
									21d969d309
								
							
						
					
					
						commit
						6ad107709c
					
				
					 4 changed files with 5 additions and 6 deletions
				
			
		|  | @ -175,7 +175,7 @@ def generate_registry_jwt(auth_result): | |||
|     event.publish_event_data('docker-cli', user_event_data) | ||||
| 
 | ||||
|   # Build the signed JWT. | ||||
|   context, subject = build_context_and_subject(user, token, oauthtoken, tuf_root) | ||||
|   context, subject = build_context_and_subject(user=user, token=token, oauthtoken=oauthtoken, tuf_root=tuf_root) | ||||
|   token = generate_bearer_token(audience_param, subject, context, access, | ||||
|                                 TOKEN_VALIDITY_LIFETIME_S, instance_keys) | ||||
|   return jsonify({'token': token}) | ||||
|  |  | |||
		Reference in a new issue