Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom ssl context. #257

Merged
merged 1 commit into from
Nov 16, 2021
Merged

Conversation

serhiibuniak-okta
Copy link
Contributor

@serhiibuniak-okta serhiibuniak-okta commented Nov 10, 2021

This PR introduces new configuration option sslContext. Related to #255

Usage example:

import asyncio
import ssl

from okta.client import Client as OktaClient


async def main():
    # create default context for demo purpose
    ssl_context = ssl.create_default_context()
    client = OktaClient({"sslContext": ssl_context})
    users, resp, err = await client.list_users()
    print(users)


loop = asyncio.get_event_loop()
loop.run_until_complete(main())

@serhiibuniak-okta serhiibuniak-okta merged commit 5897284 into develop Nov 16, 2021
@serhiibuniak-okta serhiibuniak-okta deleted the allow-custom-ssl-context branch November 16, 2021 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants