==========================
This plugin allows Authentic2 IDP to log your users to freshdesk through
freshdesk simple SSO mechanism.
Install
-------
You just have to install the package in your virtualenv and relaunch, it will
be automatically loaded by authentic2.
### Freshdesk configuration
- Go to https://yourcompany.freshdesk.com/admin/security
- enable *SSO simple*
- In *Remote login URL* put something like
`https://myidp.example.com/idp/freshdesk/login/`
- In *Remote logout URL* put something like
`https://myidp.example.com/idp/logout/`
- Note down the shared secret
### Authentic configuration
Set in your *local_settings.py* the following settings according to your
fresdhesk site.
FRESHDESK_URL = 'http://yourcompany.freshdesk.com'
FRESHDESK_SECRET_KEY = 'XXXXXXXXXXXX'
### Diverting some users to somewhere else
You may need to authorize freshdesk access only for a subset of your users,
willing to redirect others to a custom URL (ex: custom error page). There is the
`FRESHDESK_DIVERT` setting for that.
you should point it to an object instance with two methods :
should_divert(email) and divert_url(email), for ex:
class TestDiverter():
def should_divert(self, user):
"""
:returns True if the user should be diverted out of FD false else
if user.email == 'foobar@example.com':
return True
else:
return False
def divert_url(self, user, request):
"""
:returns an url, the diversion path, the system will HTTP 302 there.
"""
return 'http://example.com/{}'.format(user.email)
And in your `local_settings.py`
FRESHDESK_DIVERT='mymodule.TestDiverter'
Metadata
Release files for authentic2-idp-freshdesk 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| authentic2-idp-freshdesk-0.2.tar.gz | 16.8 kB | Without provenance | Details for authentic2-idp-freshdesk-0.2.tar.gz |
Release files / authentic2-idp-freshdesk-0.2.tar.gz
| Download URL | authentic2-idp-freshdesk-0.2.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf6fc1c61a3f4aa71e0edc356d5dc6c661d13df5b3ae0840f046ccce12e99be9
|
|
BLAKE2b-256 checksum How to use checksums |
4b74d89ba26edc0ed88bb017d33954c6bfa00342520227741c90e1a8a4b2b3e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for authentic2-idp-freshdesk 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.