diff --git a/.versions b/.versions new file mode 100644 index 0000000..c6cdd96 --- /dev/null +++ b/.versions @@ -0,0 +1,41 @@ +accounts-base@1.2.0 +base64@1.0.3 +binary-heap@1.0.3 +blaze@2.1.2 +blaze-tools@1.0.3 +boilerplate-generator@1.0.3 +callback-hook@1.0.3 +check@1.0.5 +ddp@1.1.0 +deps@1.0.7 +ejson@1.0.6 +geojson-utils@1.0.3 +html-tools@1.0.4 +htmljs@1.0.4 +http@1.1.0 +id-map@1.0.3 +jquery@1.11.3_2 +json@1.0.3 +localstorage@1.0.3 +logging@1.0.7 +meteor@1.1.6 +minifiers@1.1.5 +minimongo@1.0.8 +mongo@1.1.0 +observe-sequence@1.0.6 +ordered-dict@1.0.3 +random@1.0.3 +reactive-var@1.0.5 +retry@1.0.3 +routepolicy@1.0.5 +service-configuration@1.0.4 +spacebars@1.0.6 +spacebars-compiler@1.0.6 +steffo:meteor-accounts-saml@0.0.1 +templating@1.1.1 +tracker@1.0.7 +ui@1.0.6 +underscore@1.0.3 +url@1.0.4 +webapp@1.2.0 +webapp-hashing@1.0.3 diff --git a/openam-example/README.md b/openam-example/README.md new file mode 100644 index 0000000..e12bf4d --- /dev/null +++ b/openam-example/README.md @@ -0,0 +1,33 @@ +#Examples for _steffo:meteor-accounts-saml_ + +There are currently two SAML IDPs supported by the examples. + +- ForgeRock's OpenAM (open-source, can be run locally) +- Feide's OpenIDP (run as a service, free to register) + +### Step 1. Create a Meteor project + +First clone the GitHub project in your local filesystem. From your command line run + +``` +$ meteor create openam +$ cd openam + +``` + +After that, run + +``` +$ cp -rp meteor-accounts-saml/openam-example/* . +$ meteor add accounts-password +$ meteor add accounts-ui +$ meteor add steffo:meteor-accounts-saml +``` + +Make sure that you add/change the user in `server/config.js` and that `initialBoot = true`in the same file. This will create a local Meteor user. + +### Step 2. Make sure that IDP and SP know each other + +The IDP configuration is reflected in the file `server/lib/settings.js`. Basically we only need to know the Login URL (`entryPoint`) and IDP's cert. Optionally, we can use the Single Logout URL. + +The SP configuration can be obtained by accessing eg `http://localhost:3000/_saml/metadata/forgerock` provided you have a SAML provider name `forgerock`in your `settings.js`. In OpenAM, you can create an SP configuration simply by pointing OpenAM to that Metadata URL. \ No newline at end of file diff --git a/openam-example/openam.html b/openam-example/openam.html index c670ea2..df196bd 100644 --- a/openam-example/openam.html +++ b/openam-example/openam.html @@ -1,7 +1,158 @@
-There are currently two SAML IDPs supported by the examples.
-First clone the GitHub project in your local filesystem. From your command line run
+ +$ meteor create openam
+$ cd openam
+
+
+After that, run
+ +$ cp -rp meteor-accounts-saml/openam-example/* .
+$ meteor add accounts-password
+$ meteor add accounts-ui
+$ meteor add steffo:meteor-accounts-saml
+
+
+Make sure that you add/change the user in server/config.js
and that initialBoot = true
in the same file. This will create a local Meteor user.
The IDP configuration is reflected in the file server/lib/settings.js
. Basically we only need to know the Login URL (entryPoint
) and IDP's cert. Optionally, we can use the Single Logout URL.
The SP configuration can be obtained by accessing eg http://localhost:3000/_saml/metadata/forgerock
provided you have a SAML provider name forgerock
in your settings.js
. In OpenAM, you can create an SP configuration simply by pointing OpenAM to that Metadata URL.