Skip to content
This repository was archived by the owner on Oct 1, 2023. It is now read-only.

Add fixes after live testing with more services#6

Open
sbtsrbayer wants to merge 3 commits intoloren138:masterfrom
sbtsrbayer:master
Open

Add fixes after live testing with more services#6
sbtsrbayer wants to merge 3 commits intoloren138:masterfrom
sbtsrbayer:master

Conversation

@sbtsrbayer
Copy link

From the documentation:
https://apereo.github.io/cas/5.2.x/protocol/CAS-Protocol-V2-Specification.html
"If the certificate fails validation, no proxy-granting ticket will be issued, and the CAS service response as described in Section 2.5.2 MUST NOT contain a block. "

I had to remove this from the xml response view to get Canvas to authenticate.

Canvas also defaulted to the proxyService eventhough it didn't need to proxy.

There were some routes expected by 3rd parties that needed to be added too.

Route::get('/proxyValidate', '\Loren138\CASServer\Http\Controllers\CasController@getProxyValidate');
// CAS 3.0 Validate
Route::get('/p3/serviceValidate', '\Loren138\CASServer\Http\Controllers\CasController@getServiceValidate3');
Route::get('/p3/proxyValidate', '\Loren138\CASServer\Http\Controllers\CasController@getProxyValidate3');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add tests for the 5 new endpoints (even if some of them are duplicates of existing tests)? (You could just factor out the duplicate code into a test helper method.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants