Skip to content

Commit 4dc6f32

Browse files
committed
Lint
1 parent 7101cca commit 4dc6f32

File tree

6 files changed

+37
-31
lines changed

6 files changed

+37
-31
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# simplesamlphp-module-oidc
1+
# SimpleSAMLphp Module OIDC
2+
23
> A SimpleSAMLphp module for OIDC OP support.
34
4-
[![Build Status](https://github.com/simplesamlphp/simplesamlphp-module-oidc/actions/workflows/test.yaml/badge.svg)](https://github.com/simplesamlphp/simplesamlphp-module-oidc/actions/workflows/test.yaml)
5+
[![Build Status](https://github.com/simplesamlphp/simplesamlphp-module-oidc/actions/workflows/test.yaml/badge.svg)](https://github.com/simplesamlphp/simplesamlphp-module-oidc/actions/workflows/test.yaml)
56
[![Coverage Status](https://codecov.io/gh/simplesamlphp/simplesamlphp-module-oidc/branch/master/graph/badge.svg)](https://app.codecov.io/gh/simplesamlphp/simplesamlphp-module-oidc)
67
[![SimpleSAMLphp](https://img.shields.io/badge/simplesamlphp-2.3-brightgreen)](https://simplesamlphp.org/)
78

docs/configuration.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ perform the key switch.
8484

8585
## Apache Authorization header note
8686

87-
Apache may strip the `Authorization` header (Bearer) from requests, a known
88-
issue: https://github.com/symfony/symfony/issues/19693
87+
Apache may strip the `Authorization` header (Bearer) from requests (a known
88+
[issue](https://github.com/symfony/symfony/issues/19693)).
8989

9090
Although the module includes a fallback, it has performance implications.
9191
Configure Apache to preserve the header using one of these snippets:
@@ -126,8 +126,8 @@ $config = [
126126

127127
## Attribute translation
128128

129-
Default SAML-to-OIDC claim mapping follows the REFEDS guidance:
130-
https://wiki.refeds.org/display/GROUPS/Mapping+SAML+attributes+to+OIDC+Claims
129+
Default SAML-to-OIDC claim mapping follows the
130+
[REFEDS guidance](https://wiki.refeds.org/display/GROUPS/Mapping+SAML+attributes+to+OIDC+Claims).
131131

132132
You can change or extend this mapping in `module_oidc.php`. Example:
133133

@@ -217,4 +217,4 @@ $config = [
217217

218218
Users can visit the following link for administration:
219219

220-
- https://example.com/simplesaml/module.php/oidc/clients/
220+
- [https://example.com/simplesaml/module.php/oidc/clients/](https://example.com/simplesaml/module.php/oidc/clients/)

docs/conformance.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ docker-compose up
2424

2525
This starts the Java conformance app and a MongoDB server. Then:
2626

27-
- Visit https://localhost:8443/
27+
- Visit [https://localhost:8443/](https://localhost:8443/)
2828
- Create a new plan:
2929
"OpenID Connect Core: Basic Certification Profile Authorization server test"
3030
- Click the JSON tab and paste
@@ -48,8 +48,8 @@ warnings as needed.
4848

4949
### Run automated tests
5050

51-
Once manual tests pass, you can automate the browser portion:
52-
https://gitlab.com/openid/conformance-suite/-/wikis/Design/BrowserControl
51+
Once manual tests pass, you can
52+
[automate the browser portion](https://gitlab.com/openid/conformance-suite/-/wikis/Design/BrowserControl).
5353

5454
From the `simplesamlphp-module-oidc` directory:
5555

@@ -97,7 +97,7 @@ pre-populated with data for the tests. Build and run the image.
9797

9898
### Register and create conformance tests
9999

100-
Visit https://openid.net/certification/instructions/
100+
Visit [https://openid.net/certification/instructions/](https://openid.net/certification/instructions/).
101101

102102
Use the `json` configs under `conformance-tests` to configure your cloud
103103
instances. Update `discoveryUrl` to the deployed location. Adjust `alias`

docs/docker.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ docker run --name ssp-oidc-dev \
3030

3131
Then visit:
3232

33-
- https://localhost/simplesaml/
33+
- [https://localhost/simplesaml/](https://localhost/simplesaml/)
3434

3535
The OIDC configuration endpoint is available at:
3636

37-
- https://localhost/.well-known/openid-configuration
37+
- [https://localhost/.well-known/openid-configuration](https://localhost/.well-known/openid-configuration)
3838

3939
## Local testing with other DBs
4040

@@ -78,7 +78,8 @@ When running Docker, adjust `COMPOSER_REQUIRE` to include the module:
7878
simplesamlphp/simplesamlphp-module-preprodwarning"
7979
```
8080

81-
You can register a client from https://oidcdebugger.com/ to test.
81+
You can register a client from
82+
[https://oidcdebugger.com/](https://oidcdebugger.com/) to test.
8283

8384
## Build image for conformance tests
8485

@@ -132,4 +133,4 @@ OIDC_VERSION=dev-master docker-compose -f docker/docker-compose.yml --project-di
132133

133134
Visit the OP and verify a few clients exist:
134135

135-
- https://op.local.stack-dev.cirrusidentity.com/simplesaml/
136+
- [https://op.local.stack-dev.cirrusidentity.com/simplesaml/](https://op.local.stack-dev.cirrusidentity.com/simplesaml/)

docs/oidc.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ and is based on the
66
[OAuth2 Server from the PHP League](https://oauth2.thephpleague.com/).
77

88
Supported flows:
9+
910
- Authorization Code, with PKCE (response_type: `code`)
1011
- Implicit (response_type: `id_token token` or `id_token`)
1112
- Refresh Token
@@ -21,6 +22,7 @@ capabilities. OIDFed can be enabled or disabled in the module
2122
configuration.
2223

2324
Currently supported OIDFed features:
25+
2426
- Automatic client registration using a Request Object (by value)
2527
- Federation participation limiting based on Trust Marks
2628
- Endpoint for issuing a configuration entity statement (about itself)
@@ -34,14 +36,16 @@ OIDFed is implemented using the
3436

3537
Minor versions listed show which SimpleSAMLphp versions were used during
3638
module development. SimpleSAMLphp follows semantic versioning for its
37-
API since v2.0. For example, v5.* of the OIDC module should work with
38-
any v2.* of SimpleSAMLphp. PHP version requirements may differ.
39-
40-
- OIDC v6.* → SimpleSAMLphp v2.3.*, v2.4.* → PHP >= 8.2 (recommended)
41-
- OIDC v5.* → SimpleSAMLphp v2.1.* → PHP >= 8.1
42-
- OIDC v4.* → SimpleSAMLphp v2.0.* → PHP >= 8.0
43-
- OIDC v3.* → SimpleSAMLphp v2.0.* → PHP >= 7.4
44-
- OIDC v2.* → SimpleSAMLphp v1.19.* → PHP >= 7.4
39+
API since v2.0. For example, v5.\* of the OIDC module should work with
40+
any v2.\* of SimpleSAMLphp. PHP version requirements may differ.
41+
42+
| OIDC module | Tested SimpleSAMLphp | PHP | Note |
43+
|:------------|:---------------------|:------:|-------------|
44+
| v6.\* | v2.3.\*, v2.4.\* | \>=8.2 | Recommended |
45+
| v5.\* | v2.1.\* | \>=8.1 | |
46+
| v4.\* | v2.0.\* | \>=8.0 | |
47+
| v3.\* | v2.0.\* | \>=7.4 | |
48+
| v2.\* | v1.19.\* | \>=7.4 | |
4549

4650
Upgrading? See the [upgrade guide](upgrade.md).
4751

docs/upgrade.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Upgrade guide
22

33
This is an upgrade guide from versions 1 → 6. Review the changes and
4-
apply those relevant to your deployment.
4+
apply those relevant to your deployment.
55

66
## Version 5 to 6
77

@@ -149,7 +149,7 @@ someone will upgrade from the legacy OAuth2 module to v6 of oidc module.
149149
If needed, one can upgrade to earlier versions of the `oidc` module, and then
150150
to v6.
151151

152-
# Version 4 to 5
152+
## Version 4 to 5
153153

154154
Major impact changes:
155155

@@ -180,14 +180,14 @@ like using constructor property promotion, match expressions...
180180
- removed dependency on steverhoades/oauth2-openid-connect-server
181181
(low maintenance)
182182

183-
# Version 3 to 4
183+
## Version 3 to 4
184184

185185
- PHP version requirement was bumped to v8.0 to enable updating important
186186
dependent packages like 'league/oauth2-server' which has already moved to
187187
PHPv8 between their minor releases.
188188
- SimpleSAMLphp version used during development was bumped v2.0
189189

190-
# Version 2 to 3
190+
## Version 2 to 3
191191

192192
- Module code was refactored to make it compatible with SimpleSAMLphp v2
193193
- The default key name was changed from oidc_module.pem to oidc_module.key.
@@ -197,7 +197,7 @@ oidc_module.pem to oidc_module.key.
197197
- Removed config option 'alwaysIssueRefreshToken'
198198
- Removed config option 'alwaysAddClaimsToIdToken'
199199

200-
# Version 1 to 2
200+
## Version 1 to 2
201201

202202
There are many DB changes that need to be applied. Perform the migration by
203203
logging in as an SSP admin to
@@ -237,6 +237,6 @@ the change. Note that in that case the client must have the
237237

238238
Token endpoint was renamed from '.../access_token.php' to '.../token.php'.
239239
This is a potential breaking change for clients that do not fetch
240-
OP configuration from the /.well-known/openid-configuration URI dynamically, but
241-
instead hardcode endpoints in their configuration. You should probably warn
242-
existing Relying Parties about this change.
240+
OP configuration from the /.well-known/openid-configuration URI dynamically,
241+
but instead hardcode endpoints in their configuration. You should probably
242+
warn existing Relying Parties about this change.

0 commit comments

Comments
 (0)