Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Expose URL with auth token in notebook UI#2666

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
minrk merged 2 commits intojupyter:masterfromtakluyver:i2094
Jul 20, 2017

Conversation

@takluyver
Copy link
Member

This provides a crude way to copy the link from one browser (right click the Jupyter logo) to get authenticated in another browser.

Closesgh-2094

This provides a crude way to copy the link from one browser (right clickthe Jupyter logo) to get authenticated in another browser.Closesjupytergh-2094
<divid="header">
<divid="header-container"class="container">
<divid="ipython_notebook"class="nav navbar-brand pull-left"><ahref="{{default_url}}"title='{% trans %}dashboard{% endtrans %}'>{% block logo %}<imgsrc='{{static_url("base/images/logo.png") }}'alt='Jupyter Notebook'/>{% endblock %}</a></div>
<divid="ipython_notebook"class="nav navbar-brand pull-left"><ahref="{{default_url}}?token={{token}}"title='{% trans %}dashboard{% endtrans %}'>{% block logo %}<imgsrc='{{static_url("base/images/logo.png") }}'alt='Jupyter Notebook'/>{% endblock %}</a></div>
Copy link
Member

Choose a reason for hiding this comment

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

This exposes the login token on the login page, so unauthenticated users can just click this link to login. We should make sure to only include this if the page being served is already authenticated, and only when the token is defined.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Good job one of us is thinking about this! ;-)

@takluyver
Copy link
MemberAuthor

Should be fixed now. I'm using the same conditions (logged_in and token) as we already use for puttingdata-jupyter-api-token in the body tag.

@minrkminrk merged commitc4a5dc0 intojupyter:masterJul 20, 2017
@gnestorgnestor mentioned this pull requestAug 3, 2017
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsApr 6, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@minrkminrkminrk left review comments

Assignees

No one assigned

Projects

None yet

Milestone

5.1

Development

Successfully merging this pull request may close these issues.

Link with token from UI

2 participants

@takluyver@minrk

[8]ページ先頭

©2009-2025 Movatter.jp