Skip to content

Releases: Ekwav/UF_OAUTH2-SERVER

Fixed issue with installation

03 Jul 18:43
Compare
Choose a tag to compare

Now compatible with composer

0.0.2 updated to Userfrosting 4.1

01 Jul 17:26
Compare
Choose a tag to compare
Pre-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.