Skip to content

pforte 0.3.2

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Nov 09:42
· 7 commits to main since this release

Before you update: nothing to do. This release has no migration and changes no setting; one setting is new and
optional (ACTIVATION_LINK_DAYS). The admin API and what applications receive are as they were, with one detail: an
empty clientUri is now answered as null. Two things show without your doing:

  • The pages are dark on a device that is set to dark, also with your own colours and logo. Look at your sign-in
    page on such a device after the update. "dark": false in brand.json keeps them light for everybody.
  • The sign-out pages come in the language of the application or of the person, no longer in the browser's alone.

brand.json has two new entries, logoSmall and dark. pforte 0.3.1 and earlier refuse a folder that has them, so
add them after the update, not before. There are new texts for an installation with a locales folder; the entries
below name them.

Added

  • How long an activation link works is a setting. It was seven days and could not be changed. ACTIVATION_LINK_DAYS
    takes a number of days from 1 to 30; without it the seven days stay, so nothing needs doing. It applies to every
    activation link: the one an administrator or an application sends, the one a person asks for themselves, and the
    one of the first administrator. The mail states the time that applies. A change applies to links sent from then on
    (configuration).

  • A second, small logo for the narrow places: logoSmall in brand.json. A branding folder had one logo for the
    card of the sign-in pages, for the bar and for the tab of the browser. A wide wordmark is right on the card, but in
    the one-line bar it is a thin strip that still takes a third of the width, and in the tab it cannot be read. With
    logoSmall (a signet, or a signet with a short label; the file types and the size limit of logo) the one-line bar
    and the tab of the browser show the small logo, and the cards and the wide bar keep the logo. The browser loads
    the one it shows, without script. Without a logoSmall nothing changes. One thing to know: brand.json
    refuses entries it does not know, so a folder with logoSmall stops pforte 0.3.1 and earlier at the start. Add the
    entry after the update, not before
    (branding, #93).

  • The pages come dark as well as light. They were light on every device and for every application. Which of the
    two a person sees is now decided by the application they come from, else by the device:

    • An application says whether it is dark or light with color_scheme=dark or color_scheme=light in the query
      of the authorization request, the end-session request or a link to the account pages. pforte's pages then look
      like it and keep that look in this browser until a request says something else, so no page has to pass the
      parameter on. It is kept in the new cookie pforte_color_scheme (one of the two words, 400 days);
      color_scheme=auto removes it. An application that is light or dark by its own choice should send the
      parameter with every authorization request
      : one that says nothing gets what the last application asked for.
    • Where no application ever said anything, the pages follow the device (prefers-color-scheme).
    • The dark colours are calculated from the colours of the installation: pforte's own dark page, card, text,
      hints, lines and error messages, and the installation's primary and link, kept where they read on dark and
      else lightened in their own hue until they do. brand.json has a new entry dark: dark.colors replaces single
      calculated colours, and startup warns about dark colours that are hard to read.
    • A logo sits on a light tile on a dark page, in the installation's light surface colour, because it was
      drawn for a light page; "logoTile": false in dark shows it as it is. There is one logo file for both.

    Who sees a change without doing anything: every installation, on a device that is set to dark, also one with
    its own colours and logo. Look at your sign-in page on such a device after the update. To stay light for
    everybody, as before, add "dark": false to brand.json.
    One thing to know: brand.json refuses entries it
    does not know, so a folder with dark stops pforte 0.3.1 and earlier at the start; add the entry after the update,
    not before. The pages still run no script for this and load nothing from other sites, and no text is new. The
    example application takes COLOR_SCHEME to try the parameter
    (light and dark,
    for applications, #94).

  • A sample branding folder, and branding in the Swarm example. examples/branding is a small folder to start from
    or to try things with: a made-up company with a wordmark, a small logo, its colours and two footer links. The
    Swarm example could not carry a branding folder at all;
    with BRANDING_DIR in its .env, deploy.sh now copies the folder from the machine you deploy from to the node
    and mounts it into pforte. A changed folder restarts pforte with the next deploy, an unchanged one does not.
    An installation that uses the example without BRANDING_DIR is deployed as before.

  • The example application is a place to try pforte from, also on a phone. Its page has two switches for what
    it tells pforte (light or dark, and the language) and a button for each thing to try, with a line on what to look
    at: signing in and out, the account pages, the administration, the page to set or reset the password. Nothing has
    to be typed into the address bar (example application).

Fixed

  • An empty start address is no start address. The admin API took "clientUri": "" and stored it as it was, so
    the client had a start address for everything that only asks whether there is one. With the way on after a link
    sent without an application (below) that would matter: next to one application that really has a start address
    there seemed to be two, and the page got no button. An empty clientUri or backchannelLogoutUri is now stored
    as none (null), at the creation of a client and at a change, and a record that already holds an empty start
    address does not count. Nothing needs doing (#106).

  • The sign-out pages speak the language of the application and of the person. The question "Sign out
    completely?" and the page after it followed the browser's language alone: a person who used an application in
    German on a phone set to English got them in English. They now choose their language as the sign-in pages do:
    ui_locales of the end-session request, else the language of the person who is signed in or whom the
    id_token_hint names, else the browser's, else DEFAULT_LANGUAGE. The page after the question is in the language
    of the question, also where it is the "signed out" page of the account pages or of the administration. Every
    application gets the person's language without a change; one that has a language setting of its own should send
    ui_locales with the end-session request, as with the authorization request.
    One thing to know: a person whose
    language was never set has en, so their sign-out pages are now English whatever the browser says, as the code
    page of their sign-in already is. New: the cookie pforte_logout_language, which carries the language from the
    question to the page after it for at most ten minutes. The example application takes UI_LOCALES to try the
    parameter (which language is used,
    signing out, #90).

  • An activation link sent from the administration ends with a way to the application. A person who got their
    link from an administrator chose a password and ended on a page that said to sign in "from the application you
    came from", with nothing to press: the administration passed an application on only for an administrator. Three
    things changed:

    • The administrator chooses. The page that sends an activation link, and the one that resets a password, offer
      the applications that have a start address. With exactly one it is chosen already. The mail names the
      application and the last page has the button that leads on to it.
    • A link that names no application falls back to the only one. Where exactly one application has a start
      address, the last page of an activation and of a password reset leads on to it, whoever asked for the link. The
      administration and the account pages do not count. With none or several there is no button, and the page says
      "You can sign in now" and no longer speaks of an application the person came from.
    • A link that was used or has expired leads on as well. Its page said "Ask your administration for a new one"
      and had nothing to press. It now leads to "Set or reset your password", where the person asks for a new link
      themselves. The new link keeps the application of the one it replaces. With SELF_SERVICE_ACTIVATION=false the
      page stays as it was.

    Nothing needs doing. To have the button, give your application a start address. New texts, for an
    installation with a locales folder: activate.doneNoApplication, phone.doneNoApplication and
    activate.invalidSelf on the pages, and manage.confirm.application, manage.confirm.application.none,
    manage.confirm.activate.application and manage.confirm.resetPassword.application in the administration. An
    installation that replaced activate.done, phone.done or activate.invalid sees the built-in text of the new
    one in the cases above until it replaces that too
    (the administration,
    activation, #91).

  • The bar of the account pages and of the administration is one line on a phone held sideways too. The one-line
    bar, with the sections as a menu that opens, ended at 640 pixels. A phone held sideways and a tablet held upright are
    wider, so they got the bar of a desk, which wrapped into three rows there and took half of a low screen. The bar is
    now one line up to 1,200 pixels, the width from which the sections fit side by side. The button to sign out has
    moved into the opened menu, as its last entry below "Signed in as …", so the closed menu has the room to name the
    current page. On a wider screen the bar is as before, with a little room above and below, so that a logo no longer
    touches the edge where the bar does wrap. The lists and tables keep their own widths: they are stacked below 640
    pixels only. Nothing needs doing, and no text is new. An installation sees no other change than the wider reach
    of the one-line bar (account pages, #93).

  • The activation mail says "7 days", not "168 hours". The two activation mails stated how long the link is valid as
    a number of hours. They now say it as a person would, in English, German, French and Hungarian: "7 days", "7 Tage",
    "7 jours", "7 napig". The same wording, with a singular, is used wherever pforte states a time in a sentence: the
    pages that say "not now" said "in 1 minutes" for a wait of a minute and now say "in 1 minute", and the "10 minutes"
    a code is valid for (on the code page and in the notice after asking for a reset) is taken from the time that
    actually applies and no longer written into each text. If you replaced texts in your locales folder, nothing
    needs doing:
    a text with {hours} or {minutes} loads and reads as before. To get the new wording in a text of
    yours, use {validity} (in mail.activation.text, mail.activationFor.text, code.sentEmail, code.sentSms,
    reset.sent) or {wait} (in limit.text, code.tooMany, account.password.wait). The words for it are eight new
    texts: duration.for.minute.one, duration.for.minute.other, duration.for.hour.one, duration.for.hour.other,
    duration.for.day.one, duration.for.day.other, duration.in.minute.one and duration.in.minute.other. If you
    added a language
    , add them once a text of that language uses {validity} or {wait}; until then they are not
    shown, and without them the time appears in English (texts that state a
    time
    , #92).

Image

docker pull ghcr.io/progwise/pforte:0.3.2
gh attestation verify oci://ghcr.io/progwise/pforte:0.3.2 --owner progwise