Skip to content

Commit 076f6c3

Browse files
Merge pull request #220300 from kevinjaku/main
Update apache-spark-secure-credentials-with-tokenlibrary.md
2 parents c89ec34 + eac0886 commit 076f6c3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

articles/synapse-analytics/spark/apache-spark-secure-credentials-with-tokenlibrary.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,25 @@ Console.WriteLine(TokenLibrary.help());
5454

5555
::: zone-end
5656

57+
Get result:
58+
59+
```
60+
getAccessToken(resource: String): returns AAD token for a given resource.
61+
getAADToken(tenantId: String, clientId: String, clientSecret: String, resource: String): returns AAD token for a given clientId and resource.
62+
isValidToken(token: String): returns true if token hasn't expired.
63+
getConnectionString(linkedService: String): returns connection string or credentials for the linked service.
64+
getConnectionStringAsMap(linkedService: String): returns connection string as a map.
65+
getFullConnectionString(linkedService: String): returns full connection string for the linked service.
66+
getFullConnectionStringAsMap(linkedService: String): returns full connection string as a map.
67+
getPropertiesAll(linkedService: String): returns all the properties of the linked service.
68+
getPropertiesAsMap(linkedService: String): returns all the properties of the linked service as a Map[String, Any]
69+
getSecret(akvName: String, secret: String, linkedService: String): returns AKV secret for a given akvName, secret key and AKV linked service using workspace MSI.
70+
getSecret(akvName: String, secret: String): returns AKV secret for a given akvName, secret key using user credentials.
71+
getSecretWithLS(linkedService: String, secret: String): returns AKV secret for a given AKV linked service, secret key.
72+
putSecret(akvName: String, secretName: String, secretValue: String): puts AKV secret for a given akvName, secret name.
73+
putSecretWithLS(linkedService: String, secretName: String, secretValue: String): puts AKV secret for a given linked service, secret name.
74+
```
75+
5776
## TokenLibrary for Azure Data Lake Storage Gen2
5877

5978
#### ADLS Gen2 Primary Storage

0 commit comments

Comments
 (0)