This publish is co-written with Sid Wray, Jade Koskela, and Ravi Bhattiprolu from SalesForce.
Amazon Redshift and Tableau empower information evaluation. Amazon Redshift is a cloud information warehouse that processes complicated queries at scale and with pace. Its superior question optimization serves outcomes to Tableau. Tableau’s intensive capabilities and enterprise connectivity assist analysts effectively put together, discover, and share information insights company-wide.
Prospects can combine Amazon Redshift with Tableau utilizing single sign-on (SSO) capabilities enabled by AWS IAM Identification Middle integration with trusted id propagation. You should use this to seamlessly implement authentication with third-party id suppliers (IdP) and authorization with Redshift. It positions Amazon Redshift as an AWS managed software, permitting you to take full benefit of the trusted id propagation function.
Amazon Internet Providers (AWS) collaborated with Tableau to allow SSO assist for accessing Amazon Redshift from Tableau. Each Tableau Desktop 2023.3.9 and Tableau Server 2023.3.9 releases assist trusted id propagation with IAM Identification Middle. This SSO integration is out there for Tableau Desktop, Tableau Server, and Tableau Prep.
This weblog publish offers a step-by-step information to integrating IAM Identification Middle with Microsoft Entra ID because the IdP and configuring Amazon Redshift as an AWS managed software. Moreover, you’ll discover ways to arrange the Amazon Redshift driver in Tableau, enabling SSO instantly inside Tableau Desktop.
Resolution overview
The next diagram illustrates the structure of the Tableau SSO integration with Amazon Redshift, IAM Identification Middle, and Microsoft Entra ID.
The answer depicted in Determine 1 consists of the next steps:
- The person configures Tableau to entry Amazon Redshift utilizing IAM Identification Middle.
- On a person sign-in try, Tableau initiates a browser-based OAuth circulate and redirects the person to the Microsoft Entra ID sign-in web page to enter the sign-in credentials.
- After profitable authentication, Microsoft Entra ID points authentication tokens (ID and entry token) to Tableau.
- The Amazon Redshift driver then makes a name to the Amazon Redshift-enabled Identification Middle software and forwards the entry token.
- Amazon Redshift passes the token to IAM Identification Middle for validation.
- IAM Identification Middle first validates the token utilizing the OpenID Join (OIDC) discovery connection to the trusted token issuer (TTI) and returns an IAM Identification Middle generated entry token for a similar person. In Determine 1, the TTI is the Microsoft Entra ID server.
- Amazon Redshift then makes use of the entry token to acquire the person and group membership info from Identification Middle.
- The Tableau person will be capable to join with Amazon Redshift and entry information based mostly on the person and group membership returned from IAM Identification Middle.
Conditions
Earlier than you start implementing the answer, you will need to have the next in place:
Walkthrough
On this walkthrough, you’ll use the next steps to construct the answer:
- Arrange the Microsoft Entra ID OIDC software
- Gather Microsoft Entra ID info
- Arrange a trusted token issuer in IAM Identification Middle
- Arrange consumer connections and trusted token issuers
- Arrange the Tableau OAuth config information for Microsoft Entra ID
- Set up the Tableau OAuth config file for Tableau Desktop
- Arrange the Tableau OAuth config file for Tableau Server or Tableau Cloud
- Federate to Amazon Redshift from Tableau Desktop
- Federate to Amazon Redshift from Tableau Server
Arrange the Microsoft Entra ID OIDC software
To create your Microsoft Entra software and repair principal, comply with these steps:
- Register to the Microsoft Entra admin heart as Cloud Software Administrator (at least).
- Browse to App registrations below Handle, and select New registration.
- Enter a reputation for the applying. For instance,
Tableau-OIDC-App
. - Choose a supported account sort, which determines who can use the applying. For this instance, choose the primary choice within the record.
- Beneath Redirect URI, choose Internet for the kind of software you need to create. Enter the URI the place the entry token is distributed to. On this instance, you’re utilizing localhost, so enter http://localhost:55556/Callback and http://localhost/auth/add_oauth_token.
- Select Register.
- Within the navigation pane, select Certificates & secrets and techniques.
- Select New consumer secret.
- Enter a Description and choose an expiration for the key or specify a customized lifetime. For this instance, maintain the Microsoft really helpful default expiration worth of 6 months. Select Add.
- Copy the key worth.
Observe: It’ll solely be introduced one time; after that you simply can’t learn it. - Within the navigation pane, below Handle, select Expose an API.
- If you happen to’re organising for the primary time, you possibly can see Set to the suitable of Software ID URI.
- Select Set, after which select Save.
- After the software ID URI is ready up, select Add a scope.
- For Scope title, enter a reputation. For instance,
redshift_login
. - For Admin consent show title, enter a show title. For instance,
redshift_login
. - For Admin consent description, enter an outline of the scope.
- Select Add scope.
For extra details about organising the Microsoft Entra app, see Register a Microsoft Entra app and create a service principal.
Gather Microsoft Entra ID info
To configure your IdP with IAM Identification Middle and Amazon Redshift, accumulate the next parameters from Microsoft Entra ID. If you happen to don’t have these parameters, contact your Microsoft Entra ID admin.
- Tenant ID,Shopper ID and Viewers worth: To get these values:
- Register to the Azure portal together with your Microsoft account.
- Beneath Handle, select App registrations.
- Select the applying that you simply created in earlier sections.
- On the left panel, select Overview, a brand new web page will seem containing the Necessities part. You will discover the Tenant ID,Shopper ID and Viewers worth (Software ID URI) as proven within the following determine:
- Scope: To search out your scope worth:
- Within the navigation pane of the OIDC software, below Handle, select Expose an API.
- You will see that the worth below Scopes as proven within the following determine:
Arrange a trusted token issuer in IAM Identification Middle
At this level, you may have completed configurations within the Entra ID console; now you’re prepared so as to add Entra ID as a TTI. You’ll begin by including a TTI so you possibly can trade tokens. On this step, you’ll create a TTI within the centralized administration account. To create a TTI, comply with these steps:
- Open the AWS Administration Console and navigate to IAM Identification Middle, after which to the Settings
- Choose the Authentication tab and below Trusted token issuers, select Create trusted token issuer.
- On the Arrange an exterior IdP to problem trusted tokens web page, below Trusted token issuer particulars, do the next:
- For Issuer URL, enter the OIDC discovery URL of the exterior IdP that may problem tokens for trusted id propagation. The URL could be:
https://sts.home windows.web/
. To search out your Microsoft Entra tenant ID, see Gather Microsoft Entra ID info./ - For Trusted token issuer title, enter a reputation to establish this TTI in IAM Identification Middle and within the software console.
- Beneath Map attributes, do the next:
- For Identification supplier attribute, choose an attribute from the record to map to an attribute within the Identification Middle id retailer. You may select Electronic mail, Object Identifier, Topic, and Different. This instance makes use of Different the place we’re specifying the upn (person principal title) because the Identification supplier attribute to map with Electronic mail from the IAM id Middle attribute.
- For IAM Identification Middle attribute, choose the corresponding attribute for the attribute mapping.
- Beneath Tags (non-obligatory), select Add new tag, specify a worth for Key, and optionally for Worth. For details about tags, see Tagging AWS IAM Identification Middle sources.
- For Issuer URL, enter the OIDC discovery URL of the exterior IdP that may problem tokens for trusted id propagation. The URL could be:
Determine 4 that follows exhibits the arrange for TTI.
- Select Create trusted token issuer.
Arrange consumer connections and trusted token issuers
A 3rd-party software (corresponding to Tableau) that isn’t managed by AWS exchanges the exterior token (JSON Internet Token (JWT) for an IAM Identification Middle token earlier than calling AWS providers.
The JWT should include a topic (sub) declare, an viewers (aud) declare, an issuer (iss), a person attribute declare, and a JWT ID (JTI) declare. The viewers is a worth that represents the AWS service that the applying will use, and the viewers declare worth should match the worth that’s configured within the Redshift software that exchanges the token.
On this part, you’ll specify the viewers declare within the Redshift software, which you’ll get from Microsoft Entra ID. You’ll configure the Redshift software within the member account the place the Redshift cluster or serverless occasion is.
- Choose IAM Identification Middle connection from Amazon Redshift console menu.
- Choose the Amazon Redshift software that you simply created as a part of the stipulations.
- Choose the Shopper connections tab and select Edit.
- Select Sure below Configure consumer connections that use third-party IdPs.
- Choose the checkbox for Trusted token issuer that you simply created within the earlier part.
- Enter the aud declare worth below Configure chosen trusted token issuers. For instance,
api://1230a234-b456-7890-99c9-a12345bcc123
. To get the viewers worth, see Gather Microsoft Entra ID info. - Select Save.
Your IAM Identification Middle, Amazon Redshift, and Microsoft Entra ID configuration is full. Subsequent, you must configure Tableau.
Arrange the Tableau OAuth config information for Microsoft Entra ID
To combine Tableau with Amazon Redshift utilizing IAM Identification Middle, you must use a customized XML. On this step, you utilize the next XML and exchange the values beginning with the $ signal and highlighted in daring. The remainder of the values might be stored as they’re, or you possibly can modify them based mostly in your use case. For detailed info on every of the weather within the XML file, see the Tableau documentation on GitHub.
Observe: The XML file will probably be used for all of the Tableau merchandise together with Tableau Desktop, Server, and Cloud. You should use the next XML or you possibly can consult with Tableau’s github.
The next is an instance XML file:
Set up the Tableau OAuth config file for Tableau Desktop
After the configuration XML file is created, it should be copied to a location for use by Amazon Redshift Connector from Tableau Desktop. Save the file from the earlier step as .xml and reserve it below DocumentsMy Tableau RepositoryOAuthConfigs
.
Observe: Presently, this integration isn’t supported in macOS as a result of the Redshift ODBC 2.X driver isn’t supported but for MAC. Will probably be supported quickly.
Arrange the Tableau OAuth config file for Tableau Server or Tableau Cloud
To combine with Amazon Redshift utilizing IAM Identification Middle authentication, you will need to set up the Tableau OAuth config file in Tableau Server or Tableau Cloud.
- Register to the Tableau Server or Tableau Cloud utilizing admin credentials.
- Navigate to Settings.
- Go to OAuth Shoppers Registry and choose Add OAuth Shopper
- Select following settings:
- Connection Sort: Amazon Redshift
- OAuth Supplier: Custom_IdP
- Shopper Id: Enter your IdP consumer ID worth
- Shopper Secret: Enter your consumer secret worth
- Redirect URL: Enter
http://localhost/auth/add_oauth_token
. This instance makes use of localhost for testing in a neighborhood atmosphere. You must use the complete hostname with https. - Select OAuth Config File. Choose the XML file that you simply configured within the earlier part.
- Choose Add OAuth Shopper and select Save.
Federate to Amazon Redshift from Tableau Desktop
Now you’re prepared to connect with Amazon Redshift from Tableau as an Entra ID federated person. On this step, you create a Tableau Desktop report and publish it to Tableau Server.
- Open Tableau Desktop.
- Choose Amazon Redshift Connector and enter the next values:
- Server: Enter the title of the server that hosts the database and the title of the database you need to connect with.
- Port: Enter 5439.
- Database: Enter your database title. This instance makes use of dev.
- Authentication: Choose OAuth.
- Federation Sort: Choose Identification Middle.
- Identification Middle Namespace: You may depart this worth clean.
- OAuth Supplier: This worth ought to robotically be pulled out of your configured XML. Will probably be the worth from the aspect
oauthConfigId
. - Choose Require SSL.
- Select Register.
- Enter your IdP credentials within the browser pop-up window.
- When authentication is profitable, you will note the message proven in Determine 10 that follows.
Congratulations! You’re signed in utilizing the IAM Identification Middle integration with Amazon Redshift. Now you’re able to discover and analyze your information utilizing Tableau Desktop.
After signing in, you possibly can create your personal Tableau Report on the desktop model and publish it to your Tableau Server. For this instance, we created and printed a report named SalesReport
.
Federate to Amazon Redshift from Tableau Server
After you may have printed the report from Tableau Desktop to Tableau Server, sign up as a non-admin person and think about the printed report (SalesReport
on this instance) utilizing IAM Identification Middle authentication.
- Register to the Tableau Server website as a non-admin person.
- Navigate to Discover and go to the folder the place your printed report is saved.
- Choose the report and select Signal In.
- To authenticate, enter your non-admin Microsoft Entra ID (Azure) credentials within the browser pop-up.
- After your authentication is profitable, you possibly can entry the report.
Confirm person id from Amazon Redshift
As an non-obligatory step, you possibly can audit the federated IAM Identification Middle person from Amazon Redshift.
Determine 15 is a screenshot from the Amazon Redshift system desk (sys_query_history
) exhibiting that person Ethan from Microsoft Entra ID is accessing the gross sales report.
Clear up
Full the next steps to scrub up your sources:
- Delete the IdP functions that you simply created to combine with IAM Identification Middle.
- Delete the IAM Identification Middle configuration.
- Delete the Amazon Redshift software and the Amazon Redshift provisioned cluster or serverless occasion that you simply created for testing.
- Delete the AWS Identification and Entry Administration (IAM) position and IAM coverage that you simply created as a part of the stipulations for IAM Identification Middle and Amazon Redshift integration.
- Delete the permission set from IAM Identification Middle that you simply created for Amazon Redshift Question Editor V2 within the administration account.
Conclusion
This publish explored a streamlined strategy to entry administration for information analytics by utilizing Tableau’s assist for OIDC for SSO. The answer facilitates federated person authentication, the place person identities from an exterior IdP are trusted and propagated to Amazon Redshift. You discovered easy methods to configure Tableau Desktop and Tableau Server to seamlessly combine with Amazon Redshift utilizing IAM Identification Middle for SSO. By harnessing this integration between a third-party IdP and IAM Identification Middle, customers can securely entry Amazon Redshift information sources inside Tableau with out managing separate database credentials.
The next are key sources to be taught extra about Amazon Redshift integration with IAM Identification Middle:
Concerning the Authors
Debu Panda is a Senior Supervisor, Product Administration at AWS. He’s an business chief in analytics, software platform, and database applied sciences, and has greater than 25 years of expertise within the IT world.
Sid Wray is a Senior Product Supervisor at Salesforce based mostly within the Pacific Northwest with practically 20 years of expertise in Digital Promoting, Knowledge Analytics, Connectivity Integration and Identification and Entry Administration. He presently focuses on supporting ISV companions for Salesforce Knowledge Cloud.
Adiascar Cisneros is a Tableau Senior Product Supervisor based mostly in Atlanta, GA. He focuses on the combination of the Tableau Platform with AWS providers to amplify the worth customers get from our merchandise and speed up their journey to beneficial, actionable insights. His background consists of analytics, infrastructure, community safety, and migrations.
Jade Koskela is a Principal Software program Engineer at Salesforce. He has over a decade of expertise constructing Tableau with a concentrate on areas together with information connectivity, authentication, and id federation.
Harshida Patel is a Principal Options Architect, Analytics with AWS.
Maneesh Sharma is a Senior Database Engineer at AWS with greater than a decade of expertise designing and implementing large-scale information warehouse and analytics options. He collaborates with numerous Amazon Redshift Companions and clients to drive higher integration.
Ravi Bhattiprolu is a Senior Accomplice Options Architect at AWS. He collaborates with strategic unbiased software program vendor (ISV) companions like Salesforce and Tableau to design and ship modern, well-architected cloud merchandise, integrations, and options to assist joint AWS clients obtain their enterprise targets.