plugin:sfauth
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:sfauth [2014-12-18 13:18] – grosse | plugin:sfauth [2024-01-08 15:51] (current) – Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : dokuwiki@cosmocode.de | email : dokuwiki@cosmocode.de | ||
type : action, auth | type : action, auth | ||
- | lastupdate : 2013-02-11 | + | lastupdate : 2016-02-03 |
- | compatible : angua | + | compatible : Hrun |
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
tags : authentication, | tags : authentication, | ||
- | downloadurl: | + | downloadurl: |
- | bugtracker : http:// | + | bugtracker : https:// |
- | sourcerepo : http:// | + | sourcerepo : https:// |
donationurl: | donationurl: | ||
+ | |||
+ | screenshot_img: | ||
---- | ---- | ||
+ | |||
+ | This plugin allows users to login with their Salesforce account in addition to the default plain authentication backend. Up to three Salesforce instances can be used. | ||
+ | |||
+ | [[https:// | ||
===== Installation ===== | ===== Installation ===== | ||
- | [[http:// | ||
:!: **External requirements: | :!: **External requirements: | ||
* SalesForce Account with administrator access | * SalesForce Account with administrator access | ||
- | Install | + | Search and install |
+ | |||
+ | === Change Log === | ||
+ | |||
+ | {{rss> | ||
===== Setup ===== | ===== Setup ===== | ||
- | To install | + | For the setup of this plugin |
- | - Install this plugin. | + | |
- | - Do the "Setup at SalesForce" | + | |
- | - Do the " | + | |
- | ==== Setup at SalesForce ==== | + | |
+ | ==== At SalesForce ==== | ||
=== Remote Access === | === Remote Access === | ||
+ | |||
+ | You need to register an App with oAuth access in Salesforce. | ||
+ | |||
+ | {{ : | ||
+ | |||
- Login | - Login | ||
- Click on your name in the top toolbar | - Click on your name in the top toolbar | ||
- Click on '' | - Click on '' | ||
- | - Choose | + | - Click on '' |
- | - Click '' | + | - Click on '' |
- | - Click '' | + | - Under " |
- Fill Form | - Fill Form | ||
- | * use the %%https:// | + | * Connected App Name: DokuWiki |
- | - Configure | + | * API Name: DokuWiki |
+ | * Contact Email: your email address | ||
+ | * API -> Enable OAuth Settings | ||
+ | * Callback URL - see DokuWiki' | ||
+ | * Don't enable digital signatures! | ||
+ | * Select the following oAuth scopes: | ||
+ | * Access and manage your data (api) | ||
+ | * Access your basic information (id, profile, email, address, phone) | ||
+ | * Perform requests on your behalf at any time (refresh_token, | ||
+ | - Take note of the '' | ||
+ | |||
+ | === Add custom profile Field for Groups === | ||
+ | |||
+ | To be able to assign DokuWiki-specific groups to user accounts, you need a custom field. | ||
- | === Add custom profile Field === | ||
- Login | - Login | ||
- Click on your name in the top toolbar | - Click on your name in the top toolbar | ||
- Click on '' | - Click on '' | ||
- | - Click on '' | + | - Click on '' |
- Click on '' | - Click on '' | ||
- Click on '' | - Click on '' | ||
Line 58: | Line 83: | ||
* Picklist (Multi-Select) | * Picklist (Multi-Select) | ||
- Step 2: | - Step 2: | ||
- | * Fill out form | + | * Field Label: DokuWiki Groups |
+ | * Values: enter the groups you want to assign to users | ||
+ | * Visible Lines: whatever you like | ||
* Field Name: DokuWiki_Groups | * Field Name: DokuWiki_Groups | ||
- Step 3: | - Step 3: | ||
- | * Choose editor, may grand the user read only access. | + | * keep defaults |
- Step 4: | - Step 4: | ||
+ | * keep defaults | ||
* Save | * Save | ||
- | ==== DokuWiki | + | You now can add Groups to your users that will be picked up by DokuWiki. DokuWiki will add the default group (configured in DokuWiki) and the instance name (salesforce1, |
- | - copy the lib/ | + | |
- | - change | + | |
- | === Change Log === | + | === Optional: Use the wiki in a web tab === |
- | {{rss> | + | This allows you to embed DokuWiki in a Tab of your SalesforceInstance and have users automatically authenticated in it. This requires that your wiki is available under http**s**. |
+ | |||
+ | To create the web tab: | ||
+ | |||
+ | - Click on your name in the top toolbar | ||
+ | - Click on '' | ||
+ | - Click on App Setup -> Create -> Tabs | ||
+ | - Create a new web tab | ||
+ | - fill out the forms important field is: '' | ||
+ | * You need to fill in what you configured for the callback URL above, but add '' | ||
+ | URL for '' | ||
+ | |||
+ | |||
+ | ==== In DokuWiki ==== | ||
+ | |||
+ | In DokuWiki you can configure the plugin | ||
+ | |||
+ | Be sure to set the [[config: | ||
+ | |||
+ | === Owners domain === | ||
+ | |||
+ | As username the plug-in will use the e-mail address provided by sales force. | ||
+ | In some cases you may want to strip away the host part from the e-mail address to have | ||
+ | nice names. To provide a unique username this feature is limited to one host. | ||
+ | Just set the //owners domain// option to your domain. I.e.: '' | ||
+ | |||
+ | === Multiple Salesforce Instances === | ||
+ | |||
+ | This plugin allows you to configure up to 3 Salesforce instances users may log in from. You have to repeat the Salesforce Setup steps above in each instance. | ||
- | === ToDo/Wish List === | + | It is possible that one user is configured in multiple of the instances. She will be identified by her contact email (not her salesforce login). However the groups will always be pulled from the instance the user logged in from. |
- | * Convert | + | You can use the groups '' |
plugin/sfauth.1418905117.txt.gz · Last modified: 2014-12-18 13:18 by grosse