-
Couldn't load subscription status.
- Fork 79
Plugins oauth2 #1584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Plugins oauth2 #1584
Changes from 35 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
cb99e04
Merge branch 'artifact' of https://github.com/biocore/qiita into oauth2
josenavas e8169f3
Merge branch 'oauth2' of https://github.com/squirrelo/qiita into oauth2
josenavas 1004130
Merge branch 'artifact' of https://github.com/biocore/qiita into oauth2
josenavas 2aa5876
Merge branch 'artifact' of https://github.com/biocore/qiita into arti…
josenavas f963137
Merge branch 'oauth2' into artifact-oauth
josenavas 100b354
Fixing the qiita client to use OAuth2
josenavas be34c7c
Fixing plugin tests
josenavas 3a305d8
Adding python patch to create the target gene client oauth2 info
josenavas b9d6931
Merge branch 'artifact' of https://github.com/biocore/qiita into arti…
josenavas 12dab96
Fixing conflicts
josenavas dbccfca
Fixing failing tests
josenavas 1c4ea5b
Addressing comments
josenavas e474219
Adding relation table between software and oauth identifiers
josenavas 1b2bdbc
Adding plugin information to the qiita-test-install script
josenavas c6eebfb
Fixing comments
josenavas 64e0713
Fixing expire time
josenavas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
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JEaV | ||
| fduah3c7xEkSbHQl6iHnJswNKTc7Amm+BIwuYJjCZxVgKxAgvYzzg/TFU03gqzfE | ||
| h7ARs1p4WdHH+WTMqCZq8+sju3Lum4uwjYaiLaFE7psDkWWAYOu6Jv/o0V1zER/S | ||
| LzNaDfkm5kq4VURhPMQzdAiVdiTNKDFnLB3erg6wG95q5OiGNO1WYSw2 | ||
| -----END CERTIFICATE----- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| -----BEGIN CERTIFICATE REQUEST----- | ||
| MIICsjCCAZoCAQAwbTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWEx | ||
| EjAQBgNVBAcTCVNhbiBEaWVnbzENMAsGA1UEChMEVUNTRDESMBAGA1UECxMJS25p | ||
| Z2h0TGFiMRIwEAYDVQQDEwlsb2NhbGhvc3QwggEiMA0GCSqGSIb3DQEBAQUAA4IB | ||
| DwAwggEKAoIBAQC3WCBbgz+Xdamu7j7YKuieeppRYPQiYueR0BuYOOEaIJ0qp1vz | ||
| LMt4qKkZpFjfzeB3m8xYewoHUje34TMVaJh/F3XYS/HoxQhdVlKR0KieT7zGWYnl | ||
| trUeDLurMStjv4c62CqbXKXKpO45nK/dSa/RboRMtXP9qV/PFOWoCS+4mfsjtGtt | ||
| jzUjdvlI5TElO2P2k/CRm1U4PSFrcUfQsG6UTiiLqtBCHMhtQNYshNlEK16mVXmK | ||
| RsLcmponukOJic4g+dFHRQX7F3JOI69I0fxasq4B0YY373Q8O3x+BA7Cm0TmX9Eb | ||
| KgnaifueVKPlysO1jNdcNjDQMLO4UbXadlUXAgMBAAGgADANBgkqhkiG9w0BAQUF | ||
| AAOCAQEAJD/s9Z150miwTYW08DklPoCjR1NijtFBUUkh176GCljNFe+rhnn2OLiV | ||
| skunJ4EiVAZ8O3bjgxGc53FnEMVrwisFugvnORTJAZpp7tKxBqpP++gqXf79wElN | ||
| ySTLjg9vFQgDjUxM2gO/8lH12HBw9xUDHFN2hOZ9ozPFf7KZUa6KUzh2AgHJ4UCF | ||
| 9kFceNAvUamAHjv7BwDqoakLTuEBSZOycimDKiW8aBFGYCHFO2NMCzAKyVxmLtkB | ||
| K7+e5iWwvy3LewiPX/eK+jtRVwY+ujcvOZeCv6Th+oQv1BxstpJwOlca+5s1Rdke | ||
| kUu++nvrQUvWSsdQzxZq855r2TBA/w== | ||
| -----END CERTIFICATE REQUEST----- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| -----BEGIN RSA PRIVATE KEY----- | ||
| MIIEogIBAAKCAQEAt1ggW4M/l3Wpru4+2CronnqaUWD0ImLnkdAbmDjhGiCdKqdb | ||
| 8yzLeKipGaRY383gd5vMWHsKB1I3t+EzFWiYfxd12Evx6MUIXVZSkdConk+8xlmJ | ||
| 5ba1Hgy7qzErY7+HOtgqm1ylyqTuOZyv3Umv0W6ETLVz/alfzxTlqAkvuJn7I7Rr | ||
| bY81I3b5SOUxJTtj9pPwkZtVOD0ha3FH0LBulE4oi6rQQhzIbUDWLITZRCteplV5 | ||
| ikbC3JqaJ7pDiYnOIPnRR0UF+xdyTiOvSNH8WrKuAdGGN+90PDt8fgQOwptE5l/R | ||
| GyoJ2on7nlSj5crDtYzXXDYw0DCzuFG12nZVFwIDAQABAoIBAAWPwsuD27X4d8E6 | ||
| sOVVx+Cmz2+QhVdVsLiXm36umwVz39CfawahYTqzww1oEtoXIKwAKd61PMSkFdSa | ||
| HDaWCaoxR/3br+bjszFBoReTQMosmQlbRfeV50CWGktDHpHUCYIbdI9p7A2Nmzxc | ||
| KGmKBq9Pruu0xWP4c1OQyraiMLRkyjdPx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||
| UgtsatiprRqzpYQItbPCYyPmDAscA+jsdoZzbXFjlOYz/9BZRCc= | ||
| -----END RSA PRIVATE KEY----- | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| from random import SystemRandom | ||
| from string import ascii_letters, digits | ||
|
|
||
| from qiita_db.sql_connection import TRN | ||
|
|
||
| pool = ascii_letters + digits | ||
| client_id = ''.join([SystemRandom().choice(pool) for _ in range(50)]) | ||
| client_secret = ''.join([SystemRandom().choice(pool) for _ in range(255)]) | ||
|
|
||
| with TRN: | ||
| sql = """INSERT INTO qiita.oauth_identifiers (client_id, client_secret) | ||
| VALUES (%s, %s)""" | ||
| TRN.add(sql, [client_id, client_secret]) | ||
| TRN.execute() | ||
|
|
||
| print "Please, add these values to your target gene plugin configuration file:" | ||
| print "CLIENT_ID = %s" % client_id | ||
| print "CLIENT_SECRET = %s" % client_secret |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I'm missing something here...
Should this be a public key, not a private key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, the server needs the private key to run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the server key be automatically regenerated? Otherwise, distributing a
private key is usually not a good idea
On Dec 22, 2015 09:13, "Jose Navas" notifications@github.com wrote: