Skip to content

Latest commit

 

History

History
88 lines (62 loc) · 3.43 KB

File metadata and controls

88 lines (62 loc) · 3.43 KB

0.4.1

New Features

The UI Router integration now accepts a forbiddenState option, this is the state we will send the user to if they are unauthorized for a given state. This is useful if you want to show a default "Forbidden" view in these situations.

Added documentation for the $stateChangeUnauthenticated and $stateChangeUnauthorized events!

0.4.0

Breaking Changes

The ifUserInGroup and ifUserNotInGroup directives now requires you to pass either a string expression or a reference to a scope variable. I.E. this will now throw a parse exception unless admin is a reference to a scope property:

<div if-user-in-group="admin">Hello, Administrator</div>

It should be re-written to be a string expression with quotes:

<div if-user-in-group="'admin'">Hello, Administrator</div>

New Features

The ifUserInGroup and ifUserNotInGroup directives now support regular expressions :)

See the documentation of ifUserInGroup for more information

0.3.0

Breaking Changes

  • The logout directive is renamed to spLogout

  • The registration form now uses property names of givenName and surname, instead of firstName and lastName

  • Form submissions now use application/x-www-form-urlencoded as the Content Type. Your server needs to negotiate this type, if you are using our server SDKs this happens for you. If you wish to continue using application/json as the Content Type you can define STORMPATH_CONFIG.FORM_CONTENT_TYPE='application/json' in a config block

Deprecation Notices

New Features

  • Custom Data on Registration. You can now pass custom data during registration, simply reference formModel.customData.myCustomProperty in your ng-model directive. This is only possible if you are supplying a custom template to the directive. See the spRegistrationForm directive for more detail.

  • Group-Based Access Control. This can now control access to UI Routes, based on group membership. See SpStateConfig for examples. We've also introduced the ifUserInGroup and ifUserNotInGroup directives.

Bug Fixes

  • whileResolvingUser would break after logout (user state was not properly reflected after logout)