Skip to content

added auth0 integration and auth0 integration docs - #249

Merged
shahsank3t merged 17 commits into
mainfrom
issue-112
Aug 31, 2021
Merged

shahsank3t merged 17 commits into
mainfrom
issue-112

Conversation

@parthp2107

@parthp2107 parthp2107 commented Aug 20, 2021 •

Copy link
Copy Markdown
Contributor

Describe your changes :

I worked on the auth0 integration and filter implementation.
Closes #112

Type of change :

  • New feature
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my own.
  • I have tagged my reviewers below.
  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • All new and existing tests passed.

@parthp2107
parthp2107 requested a review from sureshms August 20, 2021 06:56
@parthp2107 parthp2107 assigned parthp2107 and unassigned parthp2107 Aug 20, 2021

def auth_token(self) -> str:
conn = http.client.HTTPSConnection(self.config.domain)
payload = "grant_type=client_credentials" + "&client_id=" + self.config.client_id + "&client_secret=" \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use python string formating. Please look at other code we use like get_sql_connection_url

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@shahsank3t shahsank3t left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UI changes look good to me.
@sureshms can you please review the backend changes

} else if (jwt.getClaim("sub") != null){
authorizedEmail = jwt.getClaim("sub").as(TextNode.class).asText();
} else {
throw new AuthenticationException("Email id and subject not present");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Text should "Invalid JWT token, "email" or "subject" not present

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, will change it.

} else {
throw new AuthenticationException("Email id and subject not present");
}
String userName = authorizedEmail.split("@")[0];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this throw an error for the subject part as it won't be able to split "@"

@parthp2107 parthp2107 Aug 25, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In subject, the value we get is the client_id@clients i.e. "sub": "nLoFA7ZA8xxxxxxxxxxxxxxJpk3@clients". So it split at "@" and wont throw any error.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that consistent across all the SSOs we support

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, will look into it.

@sureshms
sureshms self-requested a review August 25, 2021 04:48
authority: string;
client_id: string;
provider?: 'google' | 'okta' | 'github';
provider?: 'google' | 'okta' | 'github' | 'auth0';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason for github here? if we don't support it yet

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed Github from UI and types

@shahsank3t
shahsank3t merged commit f9bda79 into main Aug 31, 2021
@shahsank3t
shahsank3t deleted the issue-112 branch August 31, 2021 04:47
gitbook-com Bot pushed a commit that referenced this pull request Nov 9, 2021
harshach pushed a commit that referenced this pull request Nov 13, 2021
* GitBook: [#177] Documentation Update - Airflow

* GitBook: [#195] Removing Cron from databaseServices

* GitBook: [#196] Added trino

* GitBook: [#197] removed cron from config

* GitBook: [#198] Added Redash Documentation

* GitBook: [#199] Added Bigquery Usage Documentation

* GitBook: [#200] Added page link for presto

* GitBook: [#201] Added Local Docker documentation

* GitBook: [#202] Added Documentation for Local Docker Setup

* GitBook: [#203] Added Git Command to clone Openmetadata in docs

* GitBook: [#207] links update

* GitBook: [#208] Updating Airflow Documentation

* GitBook: [#210] Adding Python installation package under Airflow Lineage config

* GitBook: [#211] Change the links to 0.5..0

* GitBook: [#213] Move buried connectors page up

* GitBook: [#214] Update to connectors page

* GitBook: [#215] Removed sub-categories

* GitBook: [#212] Adding Discovery tutorial

* GitBook: [#220] Updated steps to H2s.

* GitBook: [#230] Complex queries

* GitBook: [#231] Add lineage to feature overview

* GitBook: [#232] Make feature overview headers verbs instead of nouns

* GitBook: [#233] Add data reliability to features overview

* GitBook: [#234] Add complex data types to feature overview

* GitBook: [#235] Simplify and further distinguish discovery feature headers

* GitBook: [#236] Add data importance to feature overview

* GitBook: [#237] Break Connectors into its own section

* GitBook: [#238] Reorganize first section of docs.

* GitBook: [#239] Add connectors to feature overview

* GitBook: [#240] Organize layout of feature overview into feature categories as agreed with Harsha.

* GitBook: [#242] Make overview paragraph more descriptive.

* GitBook: [#243] Create a link to Connectors section from feature overview.

* GitBook: [#244] Add "discover data through association" to feature overview.

* GitBook: [#245] Update importance and owners gifs

* GitBook: [#246] Include a little more descriptive documentation for key features.

* GitBook: [#248] Small tweaks to intro paragraph.

* GitBook: [#249] Clean up data profiler paragraph.

* GitBook: [#250] Promote Complex Data Types to its own feature.

* GitBook: [#251] Update to advanced search

* GitBook: [#252] Update Roadmap

* GitBook: [#254] Remove old features page (text and screenshot based).

* GitBook: [#255] Remove references to removed page.

* GitBook: [#256] Add Descriptions and Tags section to feature overview.

* GitBook: [#257] Update title for "Know Your Data"

Co-authored-by: Ayush Shah <[email protected]>
Co-authored-by: Suresh Srinivas <[email protected]>
Co-authored-by: Shannon Bradshaw <[email protected]>
Co-authored-by: OpenMetadata <[email protected]>
Prajwal214 pushed a commit to Prajwal214/OpenMetadata that referenced this pull request Jun 14, 2024
Prajwal214 pushed a commit to Prajwal214/OpenMetadata that referenced this pull request Jun 14, 2024
* Minor: Connector details header fix (open-metadata#246)

* add alation connector image

* add margin to connectorsListContainer

* fix feature list heading showing in case no feature is present

* update the linkcheck workflow to provide list of urls to ignore while running checks (open-metadata#249)
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.

Add Auth0 Integration and filter implementation

4 participants