forked from orbit-oss/flask
Added OpenID example
This commit is contained in:
parent
67fc465262
commit
bc0c0559e3
9 changed files with 390 additions and 0 deletions
18
examples/openidexample/templates/layout.html
Normal file
18
examples/openidexample/templates/layout.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<!doctype html>
|
||||
<title>{% block title %}Welcome{% endblock %} | Flask OpenID Example</title>
|
||||
<link rel=stylesheet type=text/css href="{{ url_for('static',
|
||||
filename='style.css') }}">
|
||||
<h1>Flask OpenID Example</h1>
|
||||
<ul class=navigation>
|
||||
<li><a href="{{ url_for('index') }}">overview</a>
|
||||
{% if g.user %}
|
||||
<li><a href="{{ url_for('edit_profile') }}">profile</a>
|
||||
<li><a href="{{ url_for('logout') }}">sign out [{{ g.user.name }}]</a>
|
||||
{% else %}
|
||||
<li><a href="{{ url_for('login') }}">sign in</a>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% for message in get_flashed_messages() %}
|
||||
<p class=message>{{ message }}
|
||||
{% endfor %}
|
||||
{% block body %}{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue