Skip to content

Commit dfc453f

Browse files
committed
Update changelog
1 parent bfe1d61 commit dfc453f

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Enhancement: Make encoding user groups in access tokens configurable
2+
3+
https://github.com/cs3org/reva/pull/2085

changelog/unreleased/jwt-token-reduce-size.md

-3
This file was deleted.

internal/grpc/interceptors/auth/scope.go

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ func expandAndVerifyScope(ctx context.Context, req interface{}, tokenScope map[s
107107
}
108108
}
109109
}
110+
110111
} else if ref, ok := extractShareRef(req); ok {
111112
// It's a share ref
112113
// The request might be coming from a share created for a lightweight account

internal/grpc/services/gateway/authprovider.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (s *svc) Authenticate(ctx context.Context, req *gateway.AuthenticateRequest
109109
// the resources referenced by these. Since the current scope can do that,
110110
// mint a temporary token based on that and expand the scope. Then set the
111111
// token obtained from the updated scope in the context.
112-
token, err := s.tokenmgr.MintToken(ctx, res.User, res.TokenScope)
112+
token, err := s.tokenmgr.MintToken(ctx, u, res.TokenScope)
113113
if err != nil {
114114
err = errors.Wrap(err, "authsvc: error in MintToken")
115115
res := &gateway.AuthenticateResponse{
@@ -129,7 +129,7 @@ func (s *svc) Authenticate(ctx context.Context, req *gateway.AuthenticateRequest
129129
}, nil
130130
}
131131

132-
token, err = s.tokenmgr.MintToken(ctx, res.User, scope)
132+
token, err = s.tokenmgr.MintToken(ctx, u, scope)
133133
if err != nil {
134134
err = errors.Wrap(err, "authsvc: error in MintToken")
135135
res := &gateway.AuthenticateResponse{

0 commit comments

Comments
 (0)