https://github.com/e-contract/eid-idp-php-example
https://github.com/e-contract/eid-idp-php-example
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/e-contract/eid-idp-php-example
- Owner: e-Contract
- Created: 2015-08-02T13:32:51.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-08-20T13:09:15.000Z (almost 9 years ago)
- Last Synced: 2023-02-26T04:52:23.753Z (over 3 years ago)
- Language: PHP
- Size: 16.6 KB
- Stars: 8
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eID Identity Provider PHP Examples
This project contains some PHP examples on how to integrate with eID Identity Provider using OpenID.
We also provided an example that uses a pop-up window.
This project is using a patched version (added i18n support) of the LightOpenID PHP library.
The original library is available at: https://code.google.com/p/lightopenid/
The example code has been tested against both eID Identity Provider v1 and v2.
## iframe
Please notice that the usage of an `iframe` for integrating the eID Identity Provider should be avoided,
as the security policy implemented by modern web browsers is getting more strict.
Also, the eID Chrome solution, which has been integrated within eID Identity Provider v2,
cannot operate from within an `iframe`.
## Language selection
The language to be used by the eID Identity Provider can be configured via:
```
$openid->lang = 'nl';
```
## Production Usage
Important notice for production usage: change `localhost` in the code:
```
$openid = new LightOpenID('localhost');
```
to the actual DNS-name of your server.
## Supported Web browsers
The pop-up example has been tested against the following web browsers:
* Firefox 39 (Linux/Windows/Mac)
* Google Chrome 44 (Linux/Windows/Mac)
* Internet Explorer 11
* Safari 8
* Opera 30