Skip to content

Commit

Permalink
Correct some word errors and add a picture in readme. (#32536)
Browse files Browse the repository at this point in the history
* Update pic in Azure Identity Extensions.
Co-authored-by: Xiaolu Dai <31124698+saragluna@users.noreply.github.com>
  • Loading branch information
backwind1233 authored Dec 12, 2022
1 parent 3f373c8 commit 8c6d665
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ MySQL)[Azure Active Directory for authenticating with MySQL]

### Architecture

This picture shows how the jdbc authentication plugin for MySQL authenticating with MSI.
This picture shows how the jdbc authentication plugin for MySQL authenticating with managed identity.

![mysql_design.png](img/mysql_design.png)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ PostgreSQL)[Use Azure Active Directory for authenticating with PostgreSQL]

### Architecture

This picture shows how the jdbc authentication plugin for PostgreSQl authenticating with MSI.
This picture shows how the jdbc authentication plugin for PostgreSQl authenticating with managed identity.

![postgresql_design.png](img/postgresql_design.png)

1. The JDBC auth plugin will get an access token from Azure AD.
2. The JDBC driver will take the token obtained from step 1 as the password ( `token as password`) to connect with the MySQL server.
3. The MySQL server will check the access token and authenticate internally.
2. The JDBC driver will take the token obtained from step 1 as the password ( `token as password`) to connect with the PostgreSQL server.
3. The PostgreSQL server will check the access token and authenticate internally.

### Token as password

Expand Down
9 changes: 9 additions & 0 deletions sdk/identity/azure-identity-extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
- [Getting started](#getting-started)
- [Prerequisites](#prerequisites)
- [Key concepts](#key-concepts)
- [Architecture](#architecture)
- [Authenticating with JDBC](#authenticating-with-jdbc)
- [Examples](#examples)
- [Troubleshooting](#troubleshooting)
- [Next steps](#next-steps)
Expand All @@ -25,6 +27,13 @@ Azure Identity Extensions contains a common template framework for users to get
use the token as a password. For example, to connect Azure hosted MySQL, get a token from Azure AD and use the
token as a password to connect with MySQL.

## Architecture

### Authenticating with JDBC

This picture shows how the JDBC authentication plugins provided by Azure Identity Extensions authenticate with managed identity.
![Architecture](img/passwordless-connections-from-java-apps-to-data-services.jpg)

## Examples
For documentation on how to use this package, please refer to [Quickstart:Use Java and JDBC with Azure Database for MySQL](https://aka.ms/passwordless/quickstart/mysql) and [Quickstart:Use Java and JDBC with Azure Database for PostgreSQL](https://aka.ms/passwordless/quickstart/postgresql).

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8c6d665

Please sign in to comment.