Skip to content

Commit

Permalink
pass token not cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
sevignyj committed Oct 29, 2023
1 parent c496e27 commit fc70f86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tokendito/okta.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def idp_authorize(config, authn_token):
return authn_token # for now, pass thru


def create_cookies_from_token(authn_org_url, session_token):
def create_sid_cookies(authn_org_url, session_token):
"""
Create session cookie.
Expand Down Expand Up @@ -582,7 +582,7 @@ def idp_auth(config):

if local_authentication_enabled(auth_properties):
session_token = authenticate_locally(config)
session_cookies = create_cookies_from_token(config.okta["org"], session_token)
session_cookies = create_sid_cookies(config.okta["org"], session_token)
elif is_saml2_authentication(auth_properties):
session_cookies = saml2_authenticate(config, auth_properties)
else:
Expand All @@ -592,7 +592,7 @@ def idp_auth(config):
if oie_enabled(config.okta["org"]):
# this should a return a session token, but for now pass thru
# session_token = idp_authorize(config, session_token)
idp_authorize(config, session_cookies)
idp_authorize(config, session_token)

logger.error(f"Returning session cookies: {session_cookies}")
return session_cookies
Expand Down

0 comments on commit fc70f86

Please sign in to comment.