Skip to content

Latest commit

 

History

History
89 lines (48 loc) · 5.44 KB

README.md

File metadata and controls

89 lines (48 loc) · 5.44 KB

Outsourced Web Client

icon

Web client for Outsourced API

web client URL

Demo

Create new connection to the demo server with these credentials.

Usage

This section will guide you trou every aspect of your outsourced server. We hope, this guide will show you full potential of this service.

Connection

To be able to make any changes on your outsourced server, you have to establish a connection to that server first. Connections are stored in browser storage and we are not storing your passwords or access keys in any storage other then RAM. It means, you have to insert your password every time you wawnt to connect to your server. This decision was made to increase security by decreasing usability. You can still use remember password if you want to.

connect and login

Projects

One server can service multiple projects. Every project has it's ovn configuration. All you have to do is, input a project name and you can start setting it up. You don't have to set up every feature in your project to start using it. If you want to use only logging, you can use only that part. Logging and permissions are separated so that they won't affect each other.

craete project

Access Keys

Well, there is one thing you will have to set up every time you create a new project. You'll need an access key, that will allow communication with your server, and specificaly this project, from your application. Go to Settings inside you project. Select Access Keys and then create an access key. Pick a suitable name for this key, so you can remember who uses this key. A good rule of thumb is to use an environment name or machine name that will use this key.

create access key

Set Logging Rules

You decided to use outsourced server for logging. Good. Logging section enables you to change how your application's logs are handled. You can start by logging everything to file or database. Latter you may want to use some other service (like kibana or sentry). To make this chnage, you don't have to add libraries to your application or change code in your application. Just change handler in outsourced server and your logs will be imidiatly be send to the correct handler.

You can also choose different handlers for different log levels. You can also have multiple handlers for one level. It's up to you. In this example, we want to store low level logs in file and high level logs in redis.

setup logging rules

Set Permissions

The idea behind permissions is for your application to ask if user has permissions. You, as a application creator, don't care how outsourced server will manage permissions for user, you just want to know if a user has permissions.

We took a role base approach to permissions. First of all, you have to create roles. Roles are a conveniet way to name and group permissions together under some common type. Roles can represent your organization structure or they can be something more abstract.

create roles

As you can see, we did not have any permissions to choose from, so we had to create them manually. That is because, we don't have any application connected to this project. If you have a lice application connected to your project you will see all permissions your application ever requested to verify. Ofcourse, you can still create permissions manually if you want to.

After you have your roles created, you can assign roles to users. And that is basically it. When your application request a permission verification, outsourced server will look at all roles that this user have and check if those roles have requested permissions.

assign permissions to user

Set Default Roles

You may want to set a default roles for new users. User is considered new, if your application want to check permissions for, user that is not in outsourced system yet. To set up default roles, go to Settings, select User and pick roles that should be assign to new users by default.

set up default roles

Administrators

Latter on, you may want to grant access to the server to more people. We call these users administrators. Administrators have access to all project on the server.

You can create an administrator when you connect to the server and select Administrators. After picking a username for administrator, you have to send this person an invite link. This link can be generated by selecting more options next to administrator row and selecting Copy invite URL.

create_administrator

Invite URL enables a user to pick a new password for their account. Only they will know their password during the whole process. Invite link becomes invalid after finnishing registration (by selecting password) or by removing administrator.

Installation

Download

  1. Download the latest release
  2. create virtual host

Contribution

  1. clone repository
  2. make changes
  3. create pull request