oauthjs / angular-oauth2

AngularJS OAuth2
MIT License
595 stars 187 forks source link

add two optional property for OAuth configure #114

Closed lookforblue closed 7 years ago

lookforblue commented 7 years ago

add two optional property for OAuth.configure: isCookiePathRoot: false, // optional, when the property value is false or not set, the path of cookie is default, when the property value is true, the cookie path is root. (when two different web application use the same login web app and permissions system, the token should be transmit, so need set cookie path root. ) secure: true // optional, when the property value is true or not set, this component can only used in https protocol, that is if you want to use this in http environment please set it to false.

lookforblue commented 7 years ago

Hi, @ruipenso, thank you for your reply last time in first, I have already re-changed as you said, Could you help to review and merge my pull request to the master. if you feel anywhere of my pull request is not fit enough, please let me know, thank you very much.