Skip to content

0.0.2 updated to Userfrosting 4.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@Ekwav Ekwav released this 01 Jul 17:26
· 7 commits to master since this release

You can now use composer to install this sprinkle:
Edit UserFrosting app/sprinkles.json file and add the following to the require list : "ekwav/uf_oauth2_server": "0.0.*". Add api to the base list. Your sprinkles.json should look like this:

{
    "require": {
        "ekwav/uf_oauth2_server": "0.0.*"
    },
    "base": [
        "core",
        "account",
        "admin",
        "Api"
    ]
}
  1. Run composer update to download the sprinkle.
  2. Then you have to create a public and private key, we need them in order to encrypt the tokens.
    Navigate to app/sprinkles/Api/src/OAuth2 open the terminal and run openssl genrsa -out private.key 1024 you can also replace 1024 with 2048 to generate a stronger key
    Then you have to extract the public key from the private key with openssl rsa -in private.key -pubout -out public.key. More information on this here
  3. Open the terminal in your root Userfrosting directory and run php bakery bake wait untill it finishes and closes the terminal.
    You can now create Clients aka Applications.
  4. Open YourDomain/apps and continue there.