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
18162864
Commit
18162864
authored
10 years ago
by
Chris Seymour
Browse files
Options
Downloads
Patches
Plain Diff
Use a python code block for syntax rendering
parent
20d80e18
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+16
-15
16 additions, 15 deletions
README.md
with
16 additions
and
15 deletions
README.md
+
16
−
15
View file @
18162864
...
...
@@ -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
required configuration options:
```
python
from
flask
import
Flask
from
flask.ext.simpleldap
import
LDAP
...
...
@@ -33,7 +34,7 @@ required configuration options:
@ldap.login_required
def
ldap_protected
():
return
'
Success!
'
```
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