PHPackages                             uspdev/senhaunica-hwi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. uspdev/senhaunica-hwi

AbandonedArchivedLibrary

uspdev/senhaunica-hwi
=====================

Senhaunica OAuth1 Provider for Symfony

013PHP

Since Jan 24Pushed 5y ago7 watchersCompare

[ Source](https://github.com/uspdev/senhaunica-hwi)[ Packagist](https://packagist.org/packages/uspdev/senhaunica-hwi)[ RSS](/packages/uspdev-senhaunica-hwi/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

FALTA ARRUMAR ESSE README HORRÍVEL, MAS A CLASSE PARA AUTENTICAÇÃO COM SENHA ÚNICA NO SYMFONY ESTÁ OK (voluntários/as?).

```
composer create-project symfony/skeleton usp

    composer require orm-pack annotations validator template security-bundle make form
    composer require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle

    composer require server maker-bundle --dev

    composer require uspdev/senhaunica-hwi

    no .env:
    DATABASE_URL=mysql://master:master@localhost:3306/senhaunica

    php bin/console make:controller IndexController

    php bin/console server:run

    {% if app.user %}
        Logado {{ app.user.username }}!
        {{ dump(app.user) }}
        Protected route

            Logout

    {% else %}
        Symfony Auth0 Quickstart
        Login
    {% endif %}

config/routes.yaml

    hwi_oauth_redirect:
        resource: "@HWIOAuthBundle/Resources/config/routing/redirect.xml"
        prefix:   /connect

    hwi_oauth_login:
        resource: "@HWIOAuthBundle/Resources/config/routing/login.xml"
        prefix:   /login

    senhaunica_login:
        path:    /senhaunica/callback

    senhaunica_logout:
        path: /senhaunica/logout

config/packages/hwi_oauth.yaml

    hwi_oauth:
      firewall_names: [secured_area]
      resource_owners:
        senhaunica:
          type: 'oauth1'
          class: 'Uspdev\SenhaUnicaResourceOwner'
          client_id: '%env(SENHAUNICA_ID)%'
          client_secret: '%env(SENHAUNICA_SECRET)%'
          redirect_uri: 'https://localhost:8000/callback'

config/packages/security.yaml

    security:
        providers:
            hwi:
                id: hwi_oauth.user.provider

    firewalls:
        secured_area:
            anonymous: ~
            oauth:
                resource_owners:
                    senhaunica: "/senhaunica/callback"
                login_path:        /login
                use_forward:       false
                failure_path:      /login

                oauth_user_provider:
                    service: hwi_oauth.user.provider
            logout:
                path:   /logout
                target: /

    access_control:
        - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/secured, roles: ROLE_OAUTH_USER }

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a59480189a3ba1aa8355cb434880695569433f5d1c9e375e8238d5ff1a56beb?d=identicon)[uspdev](/maintainers/uspdev)

---

Top Contributors

[![thiagogomesverissimo](https://avatars.githubusercontent.com/u/908508?v=4)](https://github.com/thiagogomesverissimo "thiagogomesverissimo (16 commits)")

### Embed Badge

![Health badge](/badges/uspdev-senhaunica-hwi/health.svg)

```
[![Health](https://phpackages.com/badges/uspdev-senhaunica-hwi/health.svg)](https://phpackages.com/packages/uspdev-senhaunica-hwi)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
