Structs§
Constants§
- OPEN_
UNIVERSITY_ 🔒ENROLMENT_ BASE_ URL - The same base the scraped registration links used, so a student sees the page they saw before this pipeline existed.
Functions§
- enrolment_
url - The enrolment page a student with no usable enrolment is sent to, or
Nonefor a product whose refresh has never succeeded. The token is exposed here on purpose and nowhere else: it must not reach a log line or a stored response body. - enrolment_
url_ for_ product - The enrolment page for a module’s configured product, following the whole fallback chain:
no product configured, or no refresh has ever succeeded for it, means
Noneand the caller degrades to generic “enrol in Sisu” copy. - get_all
- get_
by_ product_ id - record_
refresh_ failure - Records a failed refresh without touching the token: a stale token still beats none.
- soft_
delete - upsert
- Stores a freshly fetched token, replacing whatever we held for the product.