-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed the default Logout Response template to include the <Status> …
…tag and to use the request ID; Added a migration with the old template so that existing instances will continue generating the same XML it does today.
- Loading branch information
1 parent
938727f
commit 3059ff9
Showing
3 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,4 +191,5 @@ import './v191'; | |
import './v192'; | ||
import './v193'; | ||
import './v194'; | ||
import './v195'; | ||
import './xrun'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { | ||
Settings, | ||
} from '../../../app/models/server'; | ||
import { Migrations } from '../../../app/migrations/server'; | ||
|
||
Migrations.add({ | ||
version: 195, | ||
up() { | ||
// For existing users, use a template compatible with the old SAML implementation instead of the default | ||
Settings.upsert({ | ||
_id: 'SAML_Custom_Default_LogoutResponse_template', | ||
}, { | ||
$set: { | ||
value: `<samlp:LogoutResponse xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="__uniqueId__" Version="2.0" IssueInstant="__instant__" Destination="__idpSLORedirectURL__"> | ||
<saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">__issuer__</saml:Issuer> | ||
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/> | ||
</samlp:LogoutResponse>`, | ||
}, | ||
}); | ||
}, | ||
}); |