-
Notifications
You must be signed in to change notification settings - Fork 2
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
Reimplement Authentication #94
Changes from all commits
eb267d1
c26b9c9
87b1e5c
311fae0
901c6c0
68f4ac3
2cf3309
1e2b714
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export USGS_USERNAME=something_secret_goes_here | ||
export USGS_PASSWORD=something_secret_goes_here | ||
|
||
export PANOPTES_PROD_CLIENT_ID=something_secret_goes_here | ||
export PANOPTES_PROD_CLIENT_SECRET=something_secret_goes_here | ||
export PANOPTES_PROD_URL=https://panoptes.zooniverse.org/ | ||
|
||
export PANOPTES_STAGING_CLIENT_ID=something_secret_goes_here | ||
export PANOPTES_STAGING_CLIENT_SECRET=something_secret_goes_here | ||
export PANOPTES_STAGING_URL=https://panoptes-staging.zooniverse.org/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ dist/ | |
downloads/ | ||
eggs/ | ||
.eggs/ | ||
.env | ||
lib/ | ||
lib64/ | ||
parts/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this file required? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is; without it, pytest is unable to locate the tests unless they are at a very specific file path; it's apparently a known thing, and this is the workaround. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
{% extends 'api.html' %} | ||
|
||
{% block content %} | ||
<h2>Homepage</h2> | ||
<p>Hello {{ user.username }}!</p> | ||
<h3>Projects</h3> | ||
<h2>Hello, {{ user.username }}!</h2> | ||
<p>Welcome to the NASA Landsat data processing pipeline.</p> | ||
|
||
<h3>Here are your projects:</h3> | ||
<p>{{ projects }}</p> | ||
<a href="{% url 'logout' %}">log out</a> | ||
|
||
<a href="{% url 'imageryrequest-list' %}" class="theia-button">Run a Pipeline!</a> | ||
|
||
<a href="{% url 'logout' %}" class="theia-button">Sign Out</a> | ||
{% endblock %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{% extends 'api.html' %} | ||
|
||
{% block content %} | ||
<h2>Login</h2> | ||
<a href="{% url 'social:begin' 'panoptes' %}">Login with Panoptes</a><br> | ||
<h2>Hi. We're glad you're here.</h2> | ||
<a href="{% url 'social:begin' 'panoptes' %}" class="theia-button">Sign in with Zooniverse</a><br> | ||
{% endblock %} |
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.
Can these just be collapsed to non deployed environment keys and allow the deploying environment to inject the correct value? E.g.
PANOPTES_PROD_CLIENT_ID
becomesPANOPTES_CLIENT_ID
where the value is specified differently in staging & productionThere 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.
Hm; well, this is sort of an interim step.
When I inherited theia, she could only connect to production version of panoptes. Not staging. I would like to get to the point where she can also upload subjects to staging for testing out changes without affecting data on prod, and I think we're almost there.
In the meantime, I have this set up so that I can switch between pointing at projects on prod Panoptes and staging Panoptes with my local theia, and not have to keep copy and pasting over the keys as I am developing.
For deployment, we can collapse them.