Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/sdk/authentication/azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ The following section describes authentication using [Azure Active Directory.](h

1\. Import **rtdip-sdk** authentication methods with the following:

from rtdip_sdk.authentication import authenticate as auth
from rtdip_sdk.authentication import azure as auth

2\. Use any of the following authentication methods. Replace **tenant_id** , **client_id**, **certificate_path** or **client_secret** with your own details.

=== "Default Authentication"
DefaultAzureCredential = auth.DefaultAuth().authenticate()
credential = auth.DefaultAuth().authenticate()

=== "Certificate Authentication"
CertificateCredential = auth.CertificateAuth(tenant_id, client_id, certificate_path).authenticate()
credential = auth.CertificateAuth(tenant_id, client_id, certificate_path).authenticate()

=== "Client Secret Authentication"
ClientSecretCredential = auth.ClientSecretAuth(tenant_id, client_id, client_secret).authenticate()
credential = auth.ClientSecretAuth(tenant_id, client_id, client_secret).authenticate()

3\. The methods above will return back a Client Object. The following example will show you how to retrieve the access_token from a credential object. The access token will be used in later steps to connect to RTDIP via the three options (Databricks SQL Connect, PYODBC SQL Connect, TURBODBC SQL Connect).

Expand All @@ -43,7 +43,7 @@ The following section describes authentication using [Azure Active Directory.](h
Once authenticated, it is possible to retrieve tokens for specific Azure Resources by providing scopes when retrieving tokens. Please see below for examples of how to retrieve tokens for Azure resources regularly used in RTDIP.

=== "Databricks"
access_token = DefaultAzureCredential.get_token("2ff814a6-3304-4ab8-85cb-cd0e6f879c1d/.default").token
access_token = credential.get_token("2ff814a6-3304-4ab8-85cb-cd0e6f879c1d/.default").token

<!-- --8<-- [end:azuread] -->

Expand Down
2 changes: 1 addition & 1 deletion docs/university/essentials/api/exercise.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

In this exercise, you will learn how to run APIs on Swagger and Postman.

1. Go to [Swagger](https://ssip-api.shell.com/docs) and click the green Authorize button on the right.
1. Go to your RTDIP Swagger page and click the green Authorize button on the right.

2. Call a `Raw Get` query to retrieve some data from your time series data source.

Expand Down