mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-24 12:08:19 +02:00
authorize: move impersonation into session/service account (#1765)
* move impersonation into session/service account * replace frontend statik * fix data race * move JWT filling to separate function, break up functions * maybe fix data race * fix code climate issue
This commit is contained in:
parent
1466f4e5a0
commit
a6bc9f492f
16 changed files with 328 additions and 162 deletions
|
@ -8,6 +8,7 @@ import (
|
|||
"github.com/golang/protobuf/ptypes"
|
||||
"google.golang.org/protobuf/types/known/anypb"
|
||||
"google.golang.org/protobuf/types/known/structpb"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
|
||||
"github.com/pomerium/pomerium/internal/identity"
|
||||
"github.com/pomerium/pomerium/pkg/grpc/databroker"
|
||||
|
@ -71,3 +72,8 @@ func (x *Session) SetRawIDToken(rawIDToken string) {
|
|||
}
|
||||
x.IdToken.Raw = rawIDToken
|
||||
}
|
||||
|
||||
// GetIssuedAt returns the issued at timestamp for the id token.
|
||||
func (x *Session) GetIssuedAt() *timestamppb.Timestamp {
|
||||
return x.GetIdToken().GetIssuedAt()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue