Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

CIRCLE / cloud

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 94
  • Merge Requests 10
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Djangosaml2

Djangosaml2

Last edited by Bach Dániel Apr 10, 2015
Page history

Így kell beröffenteni:

az url-t cseréld le a sajátodra, de a / jel maradjon a végén, mert különben vicces hibákat kapsz!

cat >> ~/.virtualenvs/circle/bin/postactivate <<END
export DJANGO_SAML=TRUE
export DJANGO_URL=https://demo.cloud.bme.hu/
export DJANGO_SAML_ATTRIBUTE_MAPPING='{"mail": ["email"], "sn": ["last_name"], "eduPersonPrincipalName": ["username"], "givenName": ["first_name"]}'
export DJANGO_SAML_GROUP_OWNER_ATTRIBUTES='niifEduPersonHeldCourse'
export DJANGO_SAML_GROUP_ATTRIBUTES='eduPersonScopedAffiliation,niifEduPersonAttendedCourse'
export DJANGO_SAML_ORG_ID_ATTRIBUTE='niifPersonOrgID'

END

sudo apt-get install xmlsec1:i386  # ha 64 bitet telepítesz, akkor egy idő után segfaultok lehetnek
cp -rp ~/.virtualenvs/circle/lib/python2.7/site-packages/saml2/attributemaps/ ~/circle/circle/attribute-maps
wget --no-check-certificate https://idp.ik.bme.hu/idp/profile/Metadata/SAML -O ~/circle/circle/remote_metadata.xml
sudo cat /etc/ssl/private/ssl-cert-snakeoil.key >~/circle/circle/samlcert.key
cp /etc/ssl/certs/ssl-cert-snakeoil.pem ~/circle/circle/samlcert.pem

A ~/circle/circle/attribute-maps/saml_uri.py fájlt szerkesszük át ennek megfelelően:

  • fro részbe: 'urn:oid:1.3.6.1.4.1.11914.0.1.154': 'niifPersonOrgID', 'urn:oid:1.3.6.1.4.1.11914.0.1.164': 'niifEduPersonAttendedCourse', 'urn:oid:1.3.6.1.4.1.11914.0.1.166': 'niifEduPersonHeldCourse',
  • to részbe: 'niifPersonOrgID': 'urn:oid:1.3.6.1.4.1.11914.0.1.154', 'niifEduPersonAttendedCourse': 'urn:oid:1.3.6.1.4.1.11914.0.1.164', 'niifEduPersonHeldCourse': 'urn:oid:1.3.6.1.4.1.11914.0.1.166',
  Clone repository
  • Bme net
  • Beegf
  • Buildbot
  • Circledevelopment
  • Codingstyle
  • Csomagforrasbol
  • Delopmentstyle
  • Devenv
  • Ervekamienkmellett
  • Felhasznaloifeltetelek
  • Guestlinux
  • Guesttelepites
  • Guestwindows7
  • Iptartomanyok
  • Kvota
More Pages
×

New Wiki Page

Tip: You can specify the full path for the new file. We will automatically create any missing directories.