fix: audience in create token (#985)

This commit is contained in:
Fabi
2020-11-18 17:11:37 +01:00
committed by GitHub
parent 1e23292fc4
commit a40ec1f25b
3 changed files with 21 additions and 5 deletions

View File

@@ -109,8 +109,6 @@ func (repo *AuthRequestRepo) CreateAuthRequest(ctx context.Context, request *mod
return nil, err
}
request.Audience = appIDs
projectIDAud := request.GetScopeProjectIDsForAud()
request.Audience = append(request.Audience, projectIDAud...)
request.AppendAudIfNotExisting(app.ProjectID)
if request.LoginHint != "" {
err = repo.checkLoginName(ctx, request, request.LoginHint)