apereo / apereo/phpCAS

Remove `serviceWeb()` and `serviceMail()` from public API

Open
#190 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

API Change
Dominant language
PHP
Stars
798
Forks
419
PR merge metrics
No merged PRs in 30d

Description

This is just a reminder of things we might want to do for a 2.0 release that already will have breaking changes in the API.

The getProxiedService() and initializeProxiedService() functions should be sufficient entry points for all proxy requests. Removing serviceWeb() and serviceMail() will reduce the number of ways to accomplish the same result, lowering the number of code-paths to test.

phpCAS::serviceWeb() and phpCAS::serviceMail() could be added to a backward-compatibility layer with a deprecation notice.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating phpCAS::serviceWeb(), phpCAS::serviceMail(), getProxiedService(), and initializeProxiedService() in the public API. Review how a backward-compatibility layer and deprecation notice would fit the planned 2.0 breaking changes; done means the duplicate entry points are removed or deprecated as specified without leaving unsupported proxy paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, authentication
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.