mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-31 09:57:17 +02:00
directory: generate user/directory.User ID in a consistent way (#944)
This commit is contained in:
parent
84dde097c7
commit
f7760c413e
13 changed files with 59 additions and 26 deletions
7
internal/grpc/databroker/databroker.go
Normal file
7
internal/grpc/databroker/databroker.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
// Package databroker contains databroker protobuf definitions.
|
||||
package databroker
|
||||
|
||||
// GetUserID gets the databroker user id from a provider user id.
|
||||
func GetUserID(provider, providerUserID string) string {
|
||||
return provider + "/" + providerUserID
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue