Git Product home page Git Product logo

polished_example_apps's Introduction

Polished Example Applications

Example Shiny applications using polished for authentication & user management. All demo apps below have been deployed with Polished Hosting.

You can sign into each of the apps linked below using:

Additionally, the code for each app is available in this repo. To run the apps locally, you will need to set up polished. Set up instructions are available at the Polished documentation

1. 01_minimal_example

Live App

All polished apps use the API available at auth-api.polished.tech/v1. All you need is a copy of your secret API key provided at dashboard.polished.tech and your provided app name, then the polished API handles the rest. You can find more information about the polished API here.

2. 02_custom_sign_in

Live App

Companies & developers often want to add custom logos and branding to the Sign In and Registration pages. With polished, you can easily customize these pages. Just pass your custom UI to the sign_in_page_ui argument of secure_ui().

3. 03_no_invite_required

Live App

Allow anyone to register and sign in to your app (i.e. no invite required to register and sign in) by setting the is_invite_required argument of polished_config() to FALSE.

4. 04_apps_dashboard

Live App

With polished, users can sign in to multiple Shiny apps using the same email/password sign in credentials. This allows you to make a dashboard of Shiny apps. Users who sign into the dashboard of Shiny apps (or any Shiny app hosted in the same polished project) will then not have to reenter their credentials to switch between the Shiny apps they are authorized to access. You can set user access at a per Shiny application level. These are the example Shiny apps we included in the example Shiny Apps Dashboard

5. 05_rmarkdown

Secure .Rmd documents. You can even use Shiny runtime. Flexdashboards are frequently used with Shiny runtime.

Live App

6. 06_social_sign_in

Live App

Allow your users to sign in with social sign in providers.

7. 07_alt_sign_in_ui

Live App

Use an alternate default sign in UI provided by Tychobra. Update this UI with your brand colors, logos, and company name in minutes.

8. 08_golem_app

Use golem with polished.

Live App

polished_example_apps's People

Contributors

merlinoa avatar phoward38 avatar richardhhill avatar stantond11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

polished_example_apps's Issues

Flexdashboard

I am struggling to adapt the code provided to work with my flexdashboard. Currently, my flexdashboard is an interactive R markdown document that is being hosted by shinyapps.io and I have registered the dashboard as a "Shiny app" on the polished website. However, I am unsure of how to actually change my markdown document to utilize polished. Can you provide clarity on this?

Flexdashboard

Hello!

I can't use Polished with flexdashboard (I'm trying with R Studio).
My Rmd application file in which folder should I put it?
In addition to the app key code and application name, do I need to do any other configuration?

Thank a lot!
Francesco

blog post

Next step is a blog post. Please put together the initial draft. Let's not talk about the actual demo apps; just the dashboard and it's capabilities.

I want to make 1 update to polished and then redeploy before the post.

create mp4 video for first example app

@nickmerl Please make a short mp4 videos of the first example app in action.

It should only be around 5 seconds. Just show the user sign in and go to the app. We may want to add subtitles.

If the videos work well we will use them in the new "examples" page that we are adding to the polished.tech website. If they are overkill we will just use images. This first video will just be to test out whether or not we want to use videos. Let @RichardHHill know when the video is ready and he can add it to the examples page for us to test is out.

Flexdashboard in shiny runtime

Hi! Thank you so much for these examples and the great package. I am creating a prototype dashboard for a city in California and the client would like to have authentication for this dashboard for data privacy.

My issue is similar to #16, where I have a Flexdashboard hosted on shinyapps.io. I’ve done the installation on the polished dashboard. The only difference I can tell is that my Flexdashboard is using runtime::shiny which means it cannot be knit to a static html document. In this case, what should my file structure and config look like?

GitHub repo is here and draft product is here.

Thanks in advance!

sign_in_ui_default logo_bottom differnet in example app

Hi

In the example the logo_bottom (the blue Tychobra logo) is included in the white log-in box, which looks really good. Hereby your brand logo is better visisble with a white background and can use a custom background better imo.

However when I use logo_bottom the logo is placed below the white log-in box.

Is there a way to include the logo as in the example, so within the box?

custom_sign_in_tychobra

add polished to these 2 apps

From @merlinoa: "I added you to the "polished-examples" Firebase project. You should have received an email. Please use this Firebase Project and the use the "polished_examples" database."

{"error":"API key not provided in HTTP_AUTHORIZATION header"}

Dear creators,
I would like to use your authentication service in order to secure my plumber api, but i have a problem.

When i run the plumber.R file in the viewer pane it says to me

{"error":"API key not provided in HTTP_AUTHORIZATION header"}

Screenshot_1

And the follow is the entire R code used to develop the Plumber api

library(plumber)
library(polished)
library(future)
library(readxl)
library(tidyverse)

polished::polished_config(
  api_key = "aaaaaaabbbbbbb",
  app_name = "aaaaaaabbbbbb"
)

#' @filter auth
polished::auth_filter("basic")

#* @tag Phytopharmaceuticals
#* @param product_name:string Phytopharmaceutical product name
#* @post /phytopharmaceuticals
#* @serializer json
function(product_name){

  future::future({

    data <- read_excel("C_17_dataset_6_download_itemDownload0_upFile.xlsx")

    data$PRODOTTO<-tolower(data$PRODOTTO)

    data %>%
      dplyr::filter(PRODOTTO==product_name)
  })

}

What's wrong with my code?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.