Skip to content

Commit 2786454

Browse files
committed
Fix markdown
1 parent 8e9a07a commit 2786454

23 files changed

+117
-195
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
SimpleSAMLphp
2-
=============
1+
# SimpleSAMLphp
2+
33
![Build Status](https://github.com/simplesamlphp/simplesamlphp/workflows/CI/badge.svg?branch=master)
44
[![Coverage Status](https://codecov.io/gh/simplesamlphp/simplesamlphp/branch/master/graph/badge.svg)](https://codecov.io/gh/simplesamlphp/simplesamlphp)
55
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/simplesamlphp/simplesamlphp/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/simplesamlphp/simplesamlphp/?branch=master)
66
[![Type coverage](https://shepherd.dev/github/simplesamlphp/simplesamlphp/coverage.svg)](https://shepherd.dev/github/simplesamlphp/simplesamlphp)
77
[![BrowserStack Status](https://automate.browserstack.com/badge.svg?badge_key=LzlCL29sZEVDRXJpdGtxZUdITFA3YjYyUFBBYkVVZDVDcG1YZXRaN2pvTT0tLVhCNzkwVUNGVFVjVFVicUg0R1BNR0E9PQ==--f9efb6f330bd98dd6e3c7b816ac2f0982275a872)](https://automate.browserstack.com/public-build/LzlCL29sZEVDRXJpdGtxZUdITFA3YjYyUFBBYkVVZDVDcG1YZXRaN2pvTT0tLVhCNzkwVUNGVFVjVFVicUg0R1BNR0E9PQ==--f9efb6f330bd98dd6e3c7b816ac2f0982275a872)
88

9-
109
This is the official repository of the SimpleSAMLphp software.
1110

1211
* [SimpleSAMLphp homepage](https://simplesamlphp.org)

modules/core/docs/authproc_attributeadd.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Filter that adds attributes to the user.
66
If the attribute already exists, the values added will be merged into a multi-valued attribute.
77
If you instead want to replace the existing attribute, you may add the `'%replace'` option.
88

9-
109
Examples
1110
--------
1211

modules/core/docs/authproc_attributealter.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ Parameters
1616
: The attribute in which the search is performed.
1717
This parameter is REQUIRED and the filter will throw an exception if it is not set. The filter will
1818
stop quietly if the attribute specified here is empty or not found.
19-
19+
2020
`pattern`
2121
: The pattern to look for inside the subject. Supports full Perl Compatible Regular Expressions (PCRE).
2222
This parameter is REQUIRED and the filter will throw an exception if it is not set.
23-
23+
2424
`replacement`
2525
: The value used to replace the match. Back references are not supported.
2626
This parameter is REQUIRED, except when using the `%replace` or `%remove` options. If `%replace` is used and
2727
`replacement` is not set, then the match is used as a replacement.
28-
28+
2929
`target`
3030
: The attribute where the replaced value will be placed.
3131
This parameter is OPTIONAL, and if not set, `subject` is used as `target`.
@@ -43,7 +43,7 @@ Parameters
4343
: Indicates whether the altered values must be merged with the target attribute values. The default
4444
behaviour is to overwrite the target attribute completely.
4545
This parameter is OPTIONAL.
46-
46+
4747
Examples
4848
--------
4949

@@ -64,7 +64,7 @@ Change the domain on the `mail` attribute (when new domain is known):
6464
'pattern' => '/(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,6}$/',
6565
'replacement' => 'newdomain.com',
6666
],
67-
67+
6868
Set the eduPersonPrimaryAffiliation based on users' distinguishedName:
6969

7070
10 => [
@@ -74,7 +74,7 @@ Set the eduPersonPrimaryAffiliation based on users' distinguishedName:
7474
'replacement' => 'staff',
7575
'target' => 'eduPersonPrimaryAffiliation',
7676
],
77-
77+
7878
Normalize the eduPersonPrimaryAffiliation:
7979

8080
10 => [
@@ -84,7 +84,7 @@ Normalize the eduPersonPrimaryAffiliation:
8484
'replacement' => 'student',
8585
'%replace',
8686
],
87-
87+
8888
Get the domain of the emailaddress and put it in a separate attribute:
8989

9090
10 => [
@@ -109,7 +109,7 @@ unless another attribute meets a condition:
109109
'target' => 'myAttribute',
110110
'%replace',
111111
],
112-
112+
113113
Remove internal, private values from eduPersonEntitlement:
114114

115115
10 => [

modules/core/docs/authproc_attributecopy.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
Filter that copies attributes.
55

6-
76
Examples
87
--------
98

modules/core/docs/authproc_attributelimit.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Only allow specific values for an attribute ignoring case.
5252
]
5353
],
5454
],
55-
55+
5656
Only allow specific values for an attribute that match a regex pattern
5757

5858
'authproc' => [
@@ -65,8 +65,7 @@ Only allow specific values for an attribute that match a regex pattern
6565
]
6666
],
6767
],
68-
69-
68+
7069
Don't allow any attributes by default, but allow the metadata to override it.
7170

7271
'authproc' => [

modules/core/docs/authproc_attributevaluemap.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
`core:AttributeValueMap`
2-
========================
1+
# `core:AttributeValueMap`
32

43
Filter that creates a target attribute based on one or more value(s) in source attribute.
54

65
Besides the mapping of source values to target values, the filter has the following options:
6+
77
* `%replace` can be used to replace all existing values in target with new ones (any existing values will be lost)
88
* `%keep` can be used to keep the source attribute, otherwise it will be removed.
99

10-
Examples
11-
--------
10+
**Examples**:
11+
12+
## Add student affiliation based on LDAP groupmembership
1213

13-
### Add student affiliation based on LDAP groupmembership
1414
Will add eduPersonAffiliation containing value "`student`" if the `memberOf` attribute contains
1515
either '`cn=student,o=some,o=organization,dc=org`' or '`cn=student,o=other,o=organization,dc=org`'.
1616
The '`memberOf`' attribute will be removed (use `%keep`, to keep it) and existing values in
@@ -30,7 +30,8 @@ The '`memberOf`' attribute will be removed (use `%keep`, to keep it) and existin
3030
],
3131
],
3232

33-
### Multiple assignments
33+
## Multiple assignments
34+
3435
Add `student`, `employee` and `both` affiliation based on LDAP groupmembership in the `memberOf` attribute.
3536

3637
'authproc' => [
@@ -59,9 +60,10 @@ Add `student`, `employee` and `both` affiliation based on LDAP groupmembership i
5960
],
6061
],
6162

62-
### Replace and Keep
63+
## Replace and Keep
64+
6365
Replace any existing '`affiliation`' attribute values and keep the '`groups`' attribute.
64-
66+
6567
'authproc' => [
6668
50 => [
6769
'class' => 'core:AttributeValueMap',

modules/core/docs/authproc_cardinalitysingle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ Construct a single, comma-separated value version of `eduPersonAffiliation`:
8383
51 => [
8484
'class' => 'core:CardinalitySingle',
8585
'flatten' => ['eduPersonAffiliationWithCommas'],
86-
'flattenWith' => ',',
86+
'flattenWith' => ',',
8787
],
8888
],

modules/core/docs/authproc_generategroups.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ The following groups will be created:
2727
* `eduPersonAffiliation-example.org-student`
2828
* `eduPersonAffiliation-example.org-member`
2929

30-
3130
Examples
3231
--------
3332

@@ -48,4 +47,3 @@ Custom attributes:
4847
'someOtherAttribute',
4948
],
5049
],
51-

modules/core/docs/authproc_languageadaptor.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Now, the LanguageAdaptor will read the preferred language from the cookie and ad
2020

2121
The name of the attribute can be changed from the default by adding the `attributename` option.
2222

23-
2423
Examples
2524
--------
2625

modules/core/docs/authproc_php.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ Parameters
1111
It must be `'core:PHP'`.
1212

1313
`code`
14-
: The PHP code that should be run. This code will have two variables available:
14+
: The PHP code that should be run. This code will have two variables available:
1515

1616
* `$attributes`.
1717
This is an associative array of attributes, and can be modified to add or remove attributes.
18-
18+
1919
* `$state`.
2020
This is an associative array of request state. It can be modified to adjust data related to the authentication
2121
such as desired NameId, requested Attributes, authnContextRef and many more.
@@ -38,7 +38,6 @@ Add the `mail` attribute based on the user's `uid` attribute:
3838
',
3939
],
4040

41-
4241
Create a random number variable:
4342

4443
10 => [

0 commit comments

Comments
 (0)