Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flask-simpleldap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
flask-simpleldap
Commits
fe26cdf8
Commit
fe26cdf8
authored
10 years ago
by
Alexandre Ferland
Browse files
Options
Downloads
Plain Diff
Merge pull request #1 from iiSeymour/patch-1
Use a python code block for syntax rendering
parents
f657f621
369f1b16
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
AUTHORS
+1
-0
1 addition, 0 deletions
AUTHORS
README.md
+16
-15
16 additions, 15 deletions
README.md
with
17 additions
and
15 deletions
AUTHORS
+
1
−
0
View file @
fe26cdf8
...
@@ -3,3 +3,4 @@
...
@@ -3,3 +3,4 @@
==================================
==================================
Alexandre Ferland (admiralobvious)
Alexandre Ferland (admiralobvious)
Chris Seymour (iiSeymour)
This diff is collapsed.
Click to expand it.
README.md
+
16
−
15
View file @
fe26cdf8
...
@@ -19,6 +19,7 @@ with and tested on Python 2.6 and 2.7.
...
@@ -19,6 +19,7 @@ with and tested on Python 2.6 and 2.7.
Next, add a
``LDAP``
instance to your code and at least the three
Next, add a
``LDAP``
instance to your code and at least the three
required configuration options:
required configuration options:
```
python
from
flask
import
Flask
from
flask
import
Flask
from
flask.ext.simpleldap
import
LDAP
from
flask.ext.simpleldap
import
LDAP
...
@@ -33,7 +34,7 @@ required configuration options:
...
@@ -33,7 +34,7 @@ required configuration options:
@ldap.login_required
@ldap.login_required
def
ldap_protected
():
def
ldap_protected
():
return
'
Success!
'
return
'
Success!
'
```
Check the
[
examples
](
examples/
)
folder for a more complex example using LDAP groups.
Check the
[
examples
](
examples/
)
folder for a more complex example using LDAP groups.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment