mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-23 23:05:44 +00:00
Merge branch 'development-before-sso' of https://gitlab.com/mbugroup/lti-api into refactor-to-serve/with-middleware
This commit is contained in:
@@ -125,6 +125,9 @@ func fetchProfileFromSSO(ctx context.Context, token string) (*UserProfile, error
|
||||
}
|
||||
req.Header.Set("Accept", "application/json")
|
||||
req.Header.Set("Authorization", "Bearer "+token)
|
||||
if cookieName := strings.TrimSpace(config.SSOAccessCookieName); cookieName != "" {
|
||||
req.Header.Set("Cookie", fmt.Sprintf("%s=%s", cookieName, token))
|
||||
}
|
||||
|
||||
resp, err := profileClient.Do(req)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user