Skip to content

adrns/oso-java-quickstart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oso Java Quickstart

Follow along here.

Instructions

This project uses Maven to manage dependencies. The steps to get the example running are:

  1. Clone this repository.
  2. Install dependencies: make install
  3. Run the server: make run

Make some changes

If you visit http://localhost:5000/repo/gmail, you should get a 200 response. If you visit http://localhost:5000/repo/react, you should see a 404.

Add this code to main.polar:

has_permission(_user: User, "read", repository: Repository) if
  repository.IsPublic;

Now, when you visit http://localhost:5000/repo/react, you should see a proper 200 response, because the react repository is marked as public in models.go.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 80.2%
  • Polar 17.0%
  • Makefile 2.8%