Ember.js for #BlackLivesMatter 🤝, participate in the ember new --lang RFC 🌐, change the way you load your data with ember-await ⌚, beta release of ember-data-model-fragments 🚢, connect an Ember App to an OAuth2 Python Flask Server 🔐, and last, but not least, integrate Netlify with empress-blog 🚀!
There is an RFC to introduce the --lang flag to Ember CLI and help brand new Ember apps meet a Level A guideline for WCAG. (Level A is the minimum level of conformance.) If the flag is used with a valid language code, the CLI will assign the lang attribute to the root <html> element in app/index.html.
How will the lang attribute help your end users? "Both assistive technologies and conventional user agents can render text more accurately when the language of the Web page is identified. Screen readers can load the correct pronunciation rules. Visual browsers can display characters and scripts correctly. Media players can show captions correctly. As a result, users with disabilities will be better able to understand the content." WCAG Success Criterion 3.1.1: Intent
Please note that everyone benefits from having a valid page language specified, not just users with disabilities. To learn more about the importance of lang attribute and provide feedback, we encourage you to check out the RFC.
The blog post goes through adding a custom authenticator (called custom-oauth2 in our example), using the ember g command to tell ember-simple-auth how to connect and authenticate with our authentication server.
ember g authenticator custom-oauth2
It also discusses custom data such as serverTokenEndpoint, clientId, and serverTokenRevocationEndpoint which our custom authenticator can use to implement its authenticate() method.
Now we can use ember-simple-auth as a session management tool to handle querying for the current state of the user through the session Ember Service it provides.